【问题标题】:Google Places AndroidGoogle 地方信息 Android
【发布时间】:2019-11-04 08:09:56
【问题描述】:

我正在尝试获取特定类型的地点列表,例如餐厅,靠近某个纬度。我查看了适用于 android 的 Google Places SDK,但找不到任何适用于此用例的内容。它具有自动完成和当前地点搜索功能,但没有用于搜索特定类型地点的参考位置。 Places Web API 具有此功能,但我想知道是否可以使用 Android SDK for Places 实现相同功能。像下面的东西。这是 Places API 中的一个示例

https://maps.googleapis.com/maps/api/place/findplacefromtext/output?parameters

【问题讨论】:

    标签: android google-places-api google-places


    【解决方案1】:

    尝试使用谷歌地方API

    https://developers.google.com/places/web-service/search

    尝试使用您的 Your_API_KEY

    进行适当修改来实现以下 api

    更改参数:radiustypelocation

    https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=-33.8670522,151.1957362&radius=1500&type=restaurant&keyword=cruise&key=Your_API_KEY

    【讨论】:

      猜你喜欢
      • 2017-12-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-10-02
      • 2020-11-29
      • 1970-01-01
      • 1970-01-01
      • 2015-07-17
      相关资源
      最近更新 更多