我正在使用Eventbrite API搜索我周围的事件并在地图上找到它们,但我无法在搜索响应中获取地址信息。
答案 0 :(得分:7)
在您的请求中再添加一个参数,如下所示: -
答案 1 :(得分:1)
在您的活动搜索回复中,您应找到"venue_id"
字段。
然后,您需要make another call to the API获取会场详情:
例如: https://www.eventbriteapi.com/v3/venues/VENUE_ID/?token=YOUR_OAUTH_TOKEN
退货..
{
"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"
}
答案 2 :(得分:0)
您可以按照自己的方式自定义请求!
有用: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