How to get all top-rated places Top-ups From google places API

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.

+3
source share
1 answer

I hope you are doing well. For popular places you will call api.

https://maps.googleapis.com/maps/api/place/search/json?keyword=coffee&location=37.787930,-122.4074990&radius=5000&sensor=false&key={YOUR_API_KEY}

For more information, you can refer to this link.

0
source

All Articles