wip: Geocoder control#991
Conversation
|
Closest to out of the box would be their example which uses Nominatim: https://maplibre.org/maplibre-gl-js/docs/examples/geocode-with-nominatim/ |
|
I would've ideally liked to provide a selection of a few geocoder providers that users could choose from, because the actual geocoding API calls should be able to integrate into each library's solution. I don't really want to add maplibre-only or deck-only support, because library that's rendering the map view should be just an implementation detail. |
If you have an idea of which providers you want to support (for a start), we can explore possible options. It is quite hard to support multiple geocoding providers in the long term, when most of them are commercial, while it is not the main priority of library authors either. I don't normally use Nominatim as I would need to self-host to use it for autocomplete (due to their usage limit). Maplibre geocoder design is still useful as a general framework for mapping disparate geocoding inputs to outputs. Do you think it is possible to support one or two providers, and allow users to define their own? Through JS code etc |
|
Ideally I would choose the top N geocoding providers by usage (not sure what those are), including at least one free one, if possible. I don't currently have a way in Lonboard for users to provide their own JS code. Going through Python for geocoding requests might be too slow |
|
@kylebarron has anyone considered geopy integration into lonboard? |
It's a good idea, but for my use-case (visualization + location search without backend dependency for live usage) I ended up making a custom widget that works in the exact way I want (e.g. don't use Nominatim with autocomplete to stay within their limits, a handful of commercial providers, custom geocode functions etc), basically what I originally requested. I'm guessing this is what most people end up doing |
|
Actually, going through Python does simplify things a lot and remove complexity from our side in Lonboard. I'll put up a new PR this afternoon |
|
Cross this one off the list, nice work Kyle! ✔️ |
This is complex enough that it's not going to make it into this release
Closes #681