【问题标题】:Getting list of POI from Google Places API从 Google Places API 获取 POI 列表
【发布时间】:2012-12-05 19:46:39
【问题描述】:

任何人都可以指导如何从特定城市获取 POI 列表,例如艾哈迈达巴德。

收到查询https://maps.googleapis.com/maps/api/place/nearbysearch/xml?location=23.006000,72.601100&types=point_of_interest&radius=50000&sensor=false&key=YouAPIKey

“point_of_interest”已经提到他们提供但不确定如何

https://developers.google.com/places/documentation/supported_types

我们将不胜感激

【问题讨论】:

  • 这有什么更新吗??

标签: google-maps google-play-services google-places-api


【解决方案1】:

您需要将任何一种受支持的类型传递给针对类型的查询。

将结果限制为至少匹配一种指定类型的地点。类型应该用管道符号 (type1|type2|etc) 分隔。查看支持的类型列表。

https://developers.google.com/places/documentation/supported_types

【讨论】:

    【解决方案2】:
    https://maps.googleapis.com/maps/api/place/textsearch/json?query=places+in+'city'&key='APIKEY'
    

    替换为您的城市和 API KEY。

    【讨论】:

      【解决方案3】:

      我遇到了同样的问题,我已经尝试了有关如何使用地点 api 作为类型查找兴趣点的所有答案:现在允许 point_of interest

      以下对我有用的查询 todo+in+city 或 country

      https://maps.googleapis.com/maps/api/place/textsearch/json?query=todo+in+India&key=yourkey

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2019-01-27
        • 1970-01-01
        • 2017-11-04
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2017-07-31
        相关资源
        最近更新 更多