Perhaps an error occurred in the google google API when using the rankby=distance parameter, which skips any result or search in a "limited radius"
As with running curl with these options
https://maps.googleapis.com/maps/api/place/nearbysearch/json?key=MY_KEY&keyword=Resorts+World+Sentosa+Equarius+8+Sentosa+Gateway&location=1.2564%2C103.8189&rankby=distance&type=lodging
he returned only one result, as u said.
But when I worked with the radius parameter, it returns more results as accepted
https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=1.2564,103.8189&type=lodging&keyword=Resorts+World+Sentosa+Equarius+8+Sentosa+Gateway&key=MY_KEY&radius=300
You get more results via go lib because maybe they fixed it in this or something like that
For more information, you can solve the following problems:
The Google Places API is next to the search rank, passing a few nearby places
http://www.itgo.me/a/3468386017980994007/google-places-api-nearby-search-rankby-distance-skipping-some-nearest-places
Hope this helps you.
source share