region biasing uk problems getting it to work

64 views
Skip to first unread message

andyau

unread,
Jul 1, 2010, 1:14:17 PM7/1/10
to Google Maps JavaScript API v3
Hi All

I have come up against a problem I am not able to solve with out some
sort of hack and was wondering if anyone else has had similar issues.

When using the geocoding api and searching for some regions in uk I am
being given USA results

I have tried the using region biasing but it doesn't seem to be making
a difference.

Example

http://maps.google.com/maps/api/geocode/json?address=Norfolk&sensor=false&region=GB

http://maps.google.com/maps/api/geocode/json?address=Suffolk&sensor=false&region=GB

Also for the region of Devon which google maps picks up fine I get
ZERO_RESULTS

http://maps.google.com/maps/api/geocode/json?address=Devon&sensor=false&region=GB

It makes no difference if I define the region as GB or uk or .co.uk

Any tips would be much appreciated.

Regards
Andy

Rossko

unread,
Jul 2, 2010, 4:34:25 AM7/2/10
to Google Maps JavaScript API v3
> Also for the region of Devon which google maps picks up fine I get
> ZERO_RESULTS

I seem to recall Devon as a bit of an oddball, Americans imagine it is
called Devonshire ...

andyau

unread,
Jul 2, 2010, 10:40:30 AM7/2/10
to Google Maps JavaScript API v3
I came up with a solution that others may find beneficial.

If you edit the string being sent to the json api to read
http://maps.google.com/maps/api/geocode/json?address=Devon, UK
+uk&sensor=false&region=GB

That is forcing ", UK+uk" (with out quotes) directly after the name
that is being entered, no more problems everything works!

You would not even know that maps existed for the world outside of
this lovely isle.

Might be a nasty hack. But after a week of playing by the rules I am
happy to run with this.

Simon Hobbs

unread,
Feb 12, 2011, 6:02:04 AM2/12/11
to google-map...@googlegroups.com
Doesn't work for me in Australia either. Here are ten USA results for a single key word. So if "bias" is working then there are other biases also in play.

Whereas the region code to the end of the search string...




Eliot Stock

unread,
Dec 16, 2011, 11:19:29 AM12/16/11
to google-map...@googlegroups.com
Thanks for this. Worked for me too. Geocoding "W1" without it put me in North Africa or South America.
Reply all
Reply to author
Forward
0 new messages