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

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -