javascript - Google map parameter autocompleter to show suggestion after x letters -
is there google maps api parameter autocompleter, in can show in case cities after writing first 3 letters of city in input field.
let's write
new
and api suggest me
new york...
but if write
ne
the api shall suggest me nothing
i read through api page not find suitable.
i believe not attainable using available parameter options in making http requests google place autocomplete api.
what recommend implement event listener text field check how many characters entered if exceeds amount, in case “3”, proceed making http request places api.
document.getelementbyid('myinput').addeventlistener("keyup", function(){ /* code implementation here */ }, false);
Comments
Post a Comment