gis-ops / valhalla-app

This is the demo web app running on https://valhalla.openstreetmap.de
https://valhalla.openstreetmap.de
MIT License
163 stars 90 forks source link

Search location on each key press #89

Closed aaryahjolia closed 1 year ago

aaryahjolia commented 1 year ago

I was going through the whole code and I saw that the dispatch method to fetch the locations is only dispatched when someone enters 'Enter', What if we can provide the search result on each key press for good user experience?

What's your take on this issue? If this can be solved, I'm happy to solve this as part of my pre-gsoc work.

nilsnolde commented 1 year ago

Ah no, what you're suggesting is called "autocomplete" and is violating the Nominatim geocoder ToS. There's other OSM based geocoders out there which support autocomplete, but none has a public API.