我没有在 Eventbrite API 搜索响应中获取事件地址

I am not getting address of event in Eventbrite API search respose

我正在使用 Eventbrite API 搜索我周围的事件并在地图上定位它们,但我无法在搜索响应中获取地址信息。

在您的请求中再添加一个参数,如下所示:-

https://www.eventbriteapi.com/v3/events/search/?location.address=Indore&expand=organizer,venue&token=MY_EVENTBRITE_TOKEN

您可以根据自己的方式自定义请求!

有帮助:https://www.eventbrite.com/developer/v3/quickstart/

按纬度、经度,范围:

https://www.eventbriteapi.com/v3/events/search/?location.latitude=23.06&location.longitude=72.53&location.within=100km&token= Your_personal_OAuth_token

在您的活动搜索响应中,您应该找到一个 "venue_id" 字段。

然后您需要make another call to the API获取场地详情:

例如: https://www.eventbriteapi.com/v3/venues/VENUE_ID/?token=YOUR_OAUTH_TOKEN

Returns ..

{ "address":{ "address_1":"101 foobar st", "address_2":null, "city":"Sydney", "region":"NSW", "postal_code":"2000", "country":"AU", "latitude":"-33.8737891", "longitude":"151.213161", "localized_address_display":"101 foobar st, Sydney, NSW 2000", "localized_area_display":"Sydney, NSW", "localized_multi_line_address_display":[ "101 foobar st", "Sydney, NSW 2000" ] }, "resource_uri":"https://www.eventbriteapi.com/v3/venues/25210646/", "id":"25210646", "age_restriction":null, "capacity":null, "name":"Sydney", "latitude":"-33.8737891", "longitude":"151.213161" }