I want to search for all nearby places in a specific position. I found out that this can be done using the Google Places API next to the search by passing the rankby = distance parameter in the parameter. Because when using rankby = distance, you must pass one of these three parameters a name , keyword or strong> in the request. Therefore, I gave type = creation in the request and its operation, but not in the way I wanted. The problem with the query is that it does not return all the nearest places. What should I use to get all the places.
And of course, the Google Places API returns 60 places and 20 on the first page. But something that this request misses the closest place to.
https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=41.89264166666667,-87.62443666666667&rankby=distance&type=establishment&key=MY_KEY.
how can i solve this problem.
source share