On 6 March 2011 08:38, Aaron <[email protected]> wrote:
> If, however I type in the address in the maps search bar the correct
> location comes up. Also if I geocode just the postal code (zip code) it
> returns the correct area. Any ideas as to what's going wrong here?

The geocoders differ between the API and Google Maps, so different
results are not surprising.

The word "London" is confusing the API geocoder. Generally, if you
include a postcode you don't need to give the post town to the API.
London is big, and including the word tends to bias the geocoder
towards the middle (Westminster). If you include "London", the
geocoder finds William Mews; if you leave it out, it can use the
postcode and gets it right.

If you're geocoding "a bunch of addresses", just do the postcodes.
Certainly in built-up areas, the range of addresses each covers is
small and the point returned -- the centroid of the addresses it
covers -- should be sufficiently accurate for a map. House numbers are
usually interpolated anyway, so they are more of a guess than the
postcode result.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to