Reputation: 41
I've recently noticed certain nuances when using Google Maps API to help in a site I'm developing. Specifically, I've noticed that Google Maps will only return a single location in instances where multiple locations should have been returned.
Examples, Whitfield in Google Maps returns 10 places, which is fine.
But, Gulf Port returns 1 place in IL, even though it should be returning another place in Florida as well ( Gulf Port, FL ).
Likewise, Saint Petersburg returns 1 place in Russia, even though it should be returning another place in Florida as well ( Saint Petersburg, FL ).
How can I get google to return ALL of the locations that it should be listing, 100% of the time? Is there an argument I need to use? I've taken a look at the 'bounds' arg which I thought I could perhaps use to get all results by setting the bounds to encompass the entire world , but I didn't have any luck.
Upvotes: 0
Views: 266
Reputation: 41
So, it would appear that the api for googlemaps has a region bias that, even when turned off or left unspecified, will return certain results and not include others. This explains the issues I faced with countries that share the same name, but does not explain at all instances like the Gulf Port issue which I mentioned.
I've concluded that the only solution is to specify a city, state / province.
Upvotes: 1