lonboard icon indicating copy to clipboard operation
lonboard copied to clipboard

wip: Geocoder control

Open kylebarron opened this issue 1 month ago • 1 comments

This is complex enough that it's not going to make it into this release

  • The Maplibre geocoder implementation doesn't provide any out of the box support for any provider
  • It's hard to match up the deck.gl widget backends to the maplibre geocoder API

Closes #681

kylebarron avatar Oct 28 '25 03:10 kylebarron

Closest to out of the box would be their example which uses Nominatim: https://maplibre.org/maplibre-gl-js/docs/examples/geocode-with-nominatim/

prusswan avatar Nov 12 '25 00:11 prusswan

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.

kylebarron avatar Dec 05 '25 04:12 kylebarron

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

prusswan avatar Dec 05 '25 06:12 prusswan

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 avatar Dec 08 '25 05:12 kylebarron