Hi I am developing small android application in which I am displaying nearby places using google places api. I tried with following request :
https://maps.googleapis.com/maps/api/place/nearbysearch/json?rankBy=distance&radius=5000&location=19.107991%2C73.001277&key=API_KEY_VAL&type=school
So above request returns nearby schools but those are not distance sorted. I tried with another request :
https://maps.googleapis.com/maps/api/place/nearbysearch/json?rankby=distance&location=19.107991%2C73.001277&key=API_KEY_VAL&type=school
Above request gives me distance sorted result but I can not use radius
paramter in that case.
Also I am facing some chanllenges in both request. In the first request it returns me some schools within 5Km redious. In the second request it returns me nearby schools. If I check the both result some of the nearby schools are not present in the request which has radius as param.
My expected output needs nearby school within 5Km radius with distance sorted. Am doing anything wrong in above requests? Need some help. Thank you.