On 7 August 2010 21:29, Asa Carter <[email protected]> wrote: > > I am trying to display a map that zooms in to street level if > geolocation returns a point from a valid street address. If it can't > find the street level address it should display a map at of the > overall town. > > The problem I have is that geolocation still retuns a point if an > invalid street address is used...
That's the way it works. The geocoder will return a point if it possibly can. If you use an invalid street address, it will either guess at the right street (if it's simply misspelled) or return a point representing the town -- usually where the town name is printed on the map. So it already does what you're coding for. -- 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.
