Hi,

I'm trying to open the map focussing on a country using only the
country code. I do this so I can also check that only addresses from
this country can be selected by compaaring the defined country code
with te retreived country code. Doing this with country names is
unreliable as the spelling can differ.

I tried to do this with the following script (partial):

var geocoder = new google.maps.Geocoder();
var address = "BE";
geocoder.geocode({'address': address, 'language': 'nl'},
function(results, status) {....etc.

I try to focus on Belgium but the map focusses on a place near Bern in
Switzerland. I tried also to fill address with ",,BE" but with te same
result. Adding 'country':'BE' or 'region':'BE' to the geocode command
has no effect.

Can anybody help me?

A similar discussion was held before:
http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/c2356ef8a176fc2e/b47af482749741f9?lnk=gst&q=country+code#b47af482749741f9

Gerrit.

-- 
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