【问题标题】:Get total number of places using Google Maps API使用 Google Maps API 获取地点总数
【发布时间】:2016-04-09 06:16:08
【问题描述】:

我想搜索受支持的types 支持的某些类别的地点,例如.. 获取美国博物馆的总数。

阅读这些文档后,我发现我们应该通过这个来进行搜索。

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

即使它显示了整个 json..

我试过这样的

https://maps.googleapis.com/maps/api/place/details/json?placeid=ChIJN1t_tDeuEmsRUsoyG83frY4&key=MYAPI

但是我怎样才能准确地获得美国可用的博物馆总数。

【问题讨论】:

    标签: php jquery json google-maps google-maps-api-3


    【解决方案1】:

    无法通过 Places API 查询 Google 数据库中给定半径范围内的地点总数。当您查询 Places API 时,将返回的最大结果数为 20(二十),如以下问题/答案中所述:What is the proper way to use the radius parameter in the Google Places API?.

    【讨论】:

    • 是否有可能仅从 API 获取计数的数量..?
    • 根据我的理解和经验,不,没有办法。
    猜你喜欢
    • 2016-08-21
    • 1970-01-01
    • 2016-05-18
    • 2017-03-05
    • 1970-01-01
    • 2012-09-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多