【问题标题】:Not able to fetch Latitude and longitude from eventbrite api无法从 eventbrite api 获取纬度和经度
【发布时间】:2018-07-08 13:35:35
【问题描述】:

这是一个查询字符串,用于获取指定位置半径内的所有热门事件。

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

但是当我查询 Eventbrite api 时,我只得到了venue_id,如何从 eventbrite api 获取事件的纬度和经度?

【问题讨论】:

  • 我在 eventbrite 文档中看不到这样做的方法。您可以查询事件的地址,然后使用谷歌geocode api 获取指定地址的经纬度。
  • @Ruchit 您对此有任何解决方案..??

标签: javascript api eventbrite


【解决方案1】:

请尝试在您的 eventBrite API 获取 URL 中使用场地参数,如下所示:

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

它解决了我的问题并带来了拉长以及事件的正确位置。

【讨论】:

    【解决方案2】:

    &expand=venue 仍在正常工作!!!官方文档说该场地已弃用,但无论如何您都可以使用它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-10-04
      • 1970-01-01
      • 2020-11-07
      • 1970-01-01
      • 1970-01-01
      • 2018-05-25
      • 1970-01-01
      相关资源
      最近更新 更多