Google Places API nearby search rankby distance skipping some nearest places

拈花ヽ惹草 提交于 2019-12-13 05:19:12

问题


I want to search all nearby places form a certain position. I came to know that it can be done by using Google Places API nearby search by passing rankby=distance in parameter. As it is necessary to pass one of these three parameter name, keyword, or type when we are using rankby=distance parameter in query. So I gave type=establishment in the query and its working but not as i wanted. Problem with the query is that it is not returning all the the nearest places. What should I use to get all places.

And of course Google Places API returns 60 places and 20 on the First Page. But something this query skip most closest place.

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

how can i resolve this problem.

来源:https://stackoverflow.com/questions/33261681/google-places-api-nearby-search-rankby-distance-skipping-some-nearest-places

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!