Google Places API - getQueryPredictions Nach Land / Stadt / Bundesstaat einschränken?
Unten sehen Sie das getQueryPredictions-Beispiel von Google
service.getQueryPredictions({input: 'pizza near'}, callback);
Gibt es eine Möglichkeit, die Ergebnisse für ein bestimmtes Land / eine bestimmte Stadt / ein bestimmtes Bundesland einzuschränken?
Die andere Funktion / Komponente kann dies ausführen
var input = document.getElementById('searchTextField');
var options = { types: ['(cities)'], componentRestrictions: {country: 'fr'}};
autocomplete = new google.maps.places.Autocomplete(input, options);