I did some searches on bounds and the web service, but didn't see anything, so forgive me this has been covered.
In the docs for the new Web Service (http://code.google.com/apis/maps/ documentation/geocoding/index.html#Viewports) it mentions you can give an address and some bounds to get a result more tailored to that area. The example given is http://maps.google.com/maps/api/geocode/json?address=Winnetka&bounds=34.172684,-118.604794|34.236144,-118.500938&sensor=false . I tried looking up Brooklyn, NY via the web service: http://maps.google.com/maps/api/geocode/xml?sensor=false&address=brooklyn+new%20york+united+states The result includes an administrative level 2 called Kings. If you look up 'Kings New York', you get an unrelated town called Kings. So, I tried adding bounds specified by the Brooklyn result but I still get the town: http://maps.google.com/maps/api/geocode/xml?sensor=false&address=kings+new%20york+united+states&bounds=40.6283130,-74.0019190|40.6979330,-73.9359829 If I do a search by Brooklyn's lat/lng though, Kings is part of the result, so I assume it should be within the bounds specified above: http://maps.google.com/maps/api/geocode/xml?sensor=false&latlng=40.6501037,-73.9495823 So I guess I'm trying to figure out how the API handles bounds. It doesn't seem to rule out results outside the bounds. I know that if I search for 'kings county new york' I get the correct answer; maybe I just need to add 'county' to any admin level 2 result. -- You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
