I want all the popularity fields from the google places API sorted in ascending order with the highest rating. (close to Houston search US lat = 29.760193, lng = -95.36939) I tried this
https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=29.760193,-95.36939&rankby=prominence%20&types=food&sensor=false&key=AIzaSydfgfdgdfgdfgdfgdgdfgcDBuNWG4
note: rankby=prominence
but it gives out like this:
{
"html_attributions" : [],
"results" : [],
"status" : "INVALID_REQUEST"
}
but it gives me the right when rankby=distance
where im doing wrong.
I want all the local places to have the highest rating.
source
share