@Andrew,

Thanks so much for your helpful reply.

I changed our "check" code to:

if (status === google.maps.GeocoderStatus.OK && 
> (results[0].geometry.location_type === 'ROOFTOP' || 
> results[0].geometry.location_type === 'RANGE_INTERPOLATED'))
>

This seems to be a good workaround.

If an address isn't found at all on a real street, location_type is 
"GEOMETRIC_CENTER" (of the street) and the type is "route", but the street 
center isn't useful information for us anyway, so it's no big deal to 
exclude the location_type "GEOMETRIC_CENTER".

Also, if a neighborhood name is entered, the location_type is 
"APPROXIMATE", but people don't generally type in neighborhood names, so it 
also isn't a problem to exclude this location_type.

Thanks again,

-Wes

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/TZSA2simj6MJ.
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-js-api-v3?hl=en.

Reply via email to