2016-01-29 42 views
1

这是一个查询字符串,用于获取指定位置半径范围内的所有热门事件。无法从eventbrite api获取经度和纬度

https://www.eventbriteapi.com/v3/events/search/?popular=off&location.address="+area+"&location.within="+radius+"&token=E5DRAICK4272QQQIBDR5 

但是,当我查询Eventbrite在线上售票API我只得到venue_id,如何获取lat和长从Eventbrite在线上售票API的事件?

+0

我没有看到在eventbrite文档中执行此操作的方法。您可以查询事件的地址,然后使用google [geocode api](https://developers.google.com/maps/documentation/geocoding/intro)获取指定地址的纬度和经度。 – magreenberg

+0

@Ruchit你有这个任何解决方案.. ?? –

回答

-1

请尝试会场PARAM在抓取URL和Eventbrite API,像这样:

$search_url?token=$token&q=&date_created.keyword=today&page=$repeat&sort_by=$date&expand=venue 

它解决了我的问题,并长着事件的适当位置沿纬度带。