You might possibly have missed "*" which goes part of the way to
addressing this issue. It doesn't help with Brisbane but it does help
with Johannesburg.
At present, the API geocoder returns the "Johannesburg" in Michigan, but
"Johannesburg *" returns a list of possible results: South Africa,
Michigan, Wisconsin, Norway and California.
However, you still do have to spell "Johannesburg" correctly. As far as
I know, the only "Johannasburg" in the world is the one in Minnesota.
These sort of geocoder behaviours are changing all the time, and may
vary for other reasons. E.g. if you load the API from google.co.uk
instead of google.com, or if you use .setBaseCountryCode("uk") then the
geocoder then considers "Brisbane" to be in Australia and "Brisbane *"
to be in Gloucestershire.
If you just want to switch off the US bias without introducing a UK
bias, try setting the Base Country Code to a country that's unlikely to
be involved in many of your searches and doesn't have address level
geocoding, e.g. .setBaseCountryCode("ki"). [Kiribati looks like a
particularly good choice because Google Maps doesn't seem to know the
names of any towns in that country, so there's nothing to get confused
with.]
--
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---