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

Popular posts from this blog

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

sql server - SQL Query returns one result, does not return 0 or NULL result -