Static Maps API image resolving address incorrectly but Google Maps resolves it correctly
Hi,
I'm using the static maps API to resolve addresses of Hotels on a
site, all work correctly apart from one Hotel. This one hotel's
address does however resolve correctly if I use the same address for a
search on maps.google.co.uk.
The page showing the incorrect location can be found here:
https://www.letsbookrooms.com/view/gb/the-townhouse_perthshire_626.html
Here's a link to a Maps.google.co.uk search for the same address used
in the static map on the above page:
You'll see on the static map that it shows the hotel to be located in
Milnathort near Kinross rather than being in the correct location of
Perth town centre. I have tested the address in the geocoding test
page (http://gmaps-samples.googlecode.com/svn/trunk/geocoder/
singlegeocode.html) and I get the same incorrect location.
Have I encountered a bug in the static maps api? I've tried modifying
the urlencoding of the address when used in the static maps api but it
makes no difference.
Here's the address I am trying to use:
17 Marshall Place, , Perth, Perthshire, Scotland, PH2 8AG
and here is the urlencoded form that I am using in my code:
17+Marshall+Place,+,+Perth,+Perthshire,+Scotland,+PH2+8AG
(I realise there is an extra comma and space in that address, this is
due to a second address parameter that does not contain any content.
However, even if you remove that it still fails to locate it
correctly.)
Thanks in advance for any help!
--
You received this message because you are subscribed to the Google Groups "Google Maps API" group.
To post to this group, send email to google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home