On May 21, 11:23 am, Chimpanzee <[email protected]> wrote: > I am using the example here (http://code.google.com/apis/maps/ > documentation/examples/geocoding-simple.html) to geocode and display > UK postcodes but the marker is placed about a mile off the actual > location. However, if the same query is run in a standard Google Maps > search, the result is accurate. For an example, search for 'BS1 5TR' > in the API demonstration and compare it to this search > result:http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=bs1+5tr&s... > > I added gl=gb to the script source but this made no difference. > > The code I am using in the actual project (which is on an intranet so > can't be linked-to) is as follows:
Do not post code. Please read this http://groups.google.com/group/Google-Maps-API/web/why-including-a-link-is-critical (See "Page is private?") The problem is that Royal Mail do not allow accurate geocoding using the API. When you geocode BS1 5TR you get a result for the centroid of the BS1 5 sector. So results will never be accurate. Or at least, that's what should happen. In fact it appears you get the result for BS1 6, which might explain the large discrepancy! Issue 1179 is related and I've updated that. Andrew --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
