Skip to content
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

Question - Address Autocomplete #280

Open
grawsom opened this issue Aug 29, 2024 · 5 comments
Open

Question - Address Autocomplete #280

grawsom opened this issue Aug 29, 2024 · 5 comments

Comments

@grawsom
Copy link

grawsom commented Aug 29, 2024

@dceejay
When seeing all of those posibilties out there (Leaflet, Maptiler, Geoapify etc. ), I was thinking.......
Would love to see in Worldmap to use Address Autocomplete both as internal search on the map, and also external (eg text input box).
Is this something for the future?
Or do I need to use different map solution?

/ Ivan

@dceejay
Copy link
Owner

dceejay commented Aug 29, 2024

Hi sorry - not quite sure what you mean... Address of what ? where in the app ?

@grawsom
Copy link
Author

grawsom commented Aug 30, 2024

Hi Dave

It's like when using googlemaps etc. and you want to fill out an address, it will begin to "surgest".

So I'm in the search to find something that works together with Node-RED, and it has a map (and I like worldmap), where I can get some kind of name, lan and lon - to pass on for another app.

I have found some examples on Leaflet's page.

https://leafletjs.com/plugins.html
Geocoding from MapTiler
Demo:
https://docs.maptiler.com/leaflet/geocoding-control/

@dceejay
Copy link
Owner

dceejay commented Aug 31, 2024

got it - let me think.

@dceejay
Copy link
Owner

dceejay commented Sep 3, 2024

I thought I had already implemented this - and yes I have (sort of) - if you are online and enter a place name in the search box the map will pan to that location. - It doesn't do auto-suggest though yet.

find.mp4

I'm not going to use the Maptiler API as that required you to have an account/API key - so will need to see if there is another alternative.

@dceejay
Copy link
Owner

dceejay commented Sep 5, 2024

@grawsom - I've had a look - and the issue with the Nominatum service I am using is that it only return exact search matches... there has been a request for it to return fuzzy matches open for a long long time so I can't see it being fixed any time soon.

So looking at alternatives the best I have found so far is https://photon.komoot.io that does seem to give a list of sensible answers IE best exact match first but reasonable close matches next - BUT for me at least it seems to sometimes go very slow - eg 5-10 seconds per request... so not exactly useful for type-ahead suggestions...

So I will keep looking - any suggestions gratefully received.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants