Autocomplete only Google Maps Streets with number

I have a website on which I want to pinpoint the user's input to geocoders and use this address for something like a meeting.

The problem is that google auto-complete also only shows "ZIP codes" or "Streets" without streetno.

Is there a way to filter autocomplete results before displaying them?

var input = /** @type {HTMLInputElement} */(
            document.getElementById('pac-input'));
var defaultBounds = new google.maps.LatLngBounds(
            new google.maps.LatLng(52.66805480068766, 13.7713623046875),
            new google.maps.LatLng(52.32191088594773, 12.98858642578125));
var autocomplete_options = {
        bounds: defaultBounds,
        componentRestrictions: {country: 'de'},
        types: ['geocode']
    };
    autocomplete = new google.maps.places.Autocomplete(input, autocomplete_options);
    google.maps.event.addListener(autocomplete, 'place_changed', callServer);

My tests for viewing autocomplete can be found here: http://www.winterreifenwechsel.de/welcome/termine

Try entering some data such as 14169 (zip code) or Wilskistr (for a street without a number).

+4
source share
1 answer

" " URL- API , . , lat lang, .

API :

https://maps.googleapis.com/maps/api/place/autocomplete/json?input=Vict&types;=geocode&language;=fr&key;=API_KEY

. Google.

, webapp. , , lat lng , aps.

+3

All Articles