-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Address/ landmark search #75
Comments
Is there an open API for converting landmarks into lat/lons |
After some digging, I found this API: http://nominatim.openstreetmap.org/search?q="london"&format=json, which returns results in json (other formats are available, see http://wiki.openstreetmap.org/wiki/Nominatim). Example:
We could use the first value (best effort) or we could run the query after a second of the last character is typed and show a list of value and then the user can select the one he wants to go to. |
@nreese I start working on this feature in this branch. I am not a JS expert so any feedbacks you can provide will be very much appreciated. I added a new 🔍 button to implement search. For now, I would like to do the API call and go to the coordinates of the first result. Then, it would be interesting to show in a drop-down slider the top n result (so that the user can have multiple choices) by firing the API query after 1 second of the last typed character and set the view to the user selected entry. |
Also, the API returns a bounding box of the address/landmark and it would be cool to extrapolate the zoom level from that. |
I found this work about implementing search in in Maybe for someone more expert than me in JS it is an easy task. |
Like the eye icon that allows you to go to specific coordinates, it would be great to have another button that allows you to search for addresses and landmark. Like in openstreet map.
The text was updated successfully, but these errors were encountered: