perliedman / leaflet-routing-machine

Control for routing in Leaflet
https://www.liedman.net/leaflet-routing-machine/
Other
1.08k stars 350 forks source link

autocomplete without having to press Enter #476

Closed alfraidi closed 6 years ago

alfraidi commented 6 years ago

Is there a way to get the drop-down menu for google autocomplete without having to press enter?

geocoder: L.Control.Geocoder.google("KEY")

Thanks a lot in advance

perliedman commented 6 years ago

For geocoders that support the suggest method, you do not have to press the enter key, so it is a matter of choosing such a geocoder (or implementing one).

Be advised that using Google's geocoder is not allowed unless you show the results on a Google map (which you normally do not when using Leaflet).