Google Places API附近搜索排名距离跳过一些最近的地方

时间:2015-10-21 14:13:14

标签: google-maps web google-places-api

我想搜索附近所有地方的某个位置。我开始知道可以通过在参数中传递 rankby = distance 来使用Google Places API附近的搜索来完成。当我们使用 rankby = distance 名称关键字类型查询中的strong>参数。所以我在查询及其工作中给出了 type = establishment ,但并不是我想要的。查询的问题是它没有返回所有最近的地方。我该怎么用才能到达所有地方。

当然,Google Places API会在第一页上返回60个位置和20个位置。但是这个查询跳过最接近的地方。

https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=41.89264166666667,-87.62443666666667&rankby=distance&type=establishment&key=MY_KEY.  

我该如何解决这个问题。

0 个答案:

没有答案
相关问题