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

时间:2016-04-04 10:31:50

标签: eventbrite

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

3 个答案:

答案 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)