Skip to content Skip to sidebar Skip to footer

Google Maps Javascript Api V3 Places Library Doesn't Return Any Results For The Bounds

I am trying to use the places library to display markers between two coordinates using the LatLngBounds class. I am able to see a few markers if I comment out the name attribute w

Solution 1:

Your bounds is a very narrow rectangle that stretches between Los Angeles and Atlanta (not I think what you want):

http://www.geocodezip.com/v3_GoogleEx_place-search_starbucks.html

Places requests which target the whole country are problematic, you only get 20 results, looks like you might be correct that they are centered on the bounds, and there don't seem to be any "real" starbucks close enough to there to be found:

http://www.geocodezip.com/v3_GoogleEx_place-search_starbucks2.html

If you search in Seattle, WA however, you get some:

http://www.geocodezip.com/v3_GoogleEx_place-search_starbucks3.html

Post a Comment for "Google Maps Javascript Api V3 Places Library Doesn't Return Any Results For The Bounds"