I've got a problem with API v3 geocoding in specified region.
First I set the "region" option in request to "ru", but still was
getting objects in other countries.
Then I tried to set search location via bounds, but it didn't work
too.
My JS:

var g = new google.maps.Geocoder();
var ne = new google.maps.LatLng(55.970724,37.922058);
var sw = new google.maps.LatLng(55.545727,37.382355);
var ba = new google.maps.LatLngBounds(sw, ne);

var str = document.getElementById('place').value;
var d = document.getElementById('answer');

g.geocode({address: str, language: 'ru', region: 'ru', bounds: ba},
function (results, status) {
    for (var i in results) {
        var p = document.createElement('p');
        p.innerHTML = results[i].formatted_address;
        d.appendChild(p);
    }
});

What am I doing wrong?

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