Google Maps Autocomplete: Nur Adresse ohne Land und Stadt ausgeben

ich benutzePlatzbibliothek zur automatischen Vervollständigung der Adresseingabe. Die Suche ist auf nur eine Stadt beschränkt und ich erhalte folgende Ausgabe:

"Rossiya, Moskva, Leninskiy Prospekt 28"

Wie "Rossiya, Moskva" verstecken? ...

Meine Frage:

<code>function() {
        // Search bounds
        var p1 = new google.maps.LatLng(54.686534, 35.463867);
        var p2 = new google.maps.LatLng(56.926993, 39.506836);
        self.options = {
            bounds : new google.maps.LatLngBounds(p1, p2),
            componentRestrictions: {country: 'ru'},
        };

        var elements = document.querySelectorAll('.address');

        for ( var i = 0; i < elements.length; i++) {
            var autocomplete = new google.maps.places.Autocomplete(elements[i],
                    self.options);
        }
</code>

Antworten auf die Frage(5)

Ihre Antwort auf die Frage