Skip to content

wip: Geocoder control#991

Closed
kylebarron wants to merge 1 commit intomainfrom
kyle/geocoding-control
Closed

wip: Geocoder control#991
kylebarron wants to merge 1 commit intomainfrom
kyle/geocoding-control

Conversation

@kylebarron
Copy link
Copy Markdown
Member

@kylebarron kylebarron commented Oct 28, 2025

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 kylebarron added the help wanted Extra attention is needed label Oct 28, 2025
@prusswan
Copy link
Copy Markdown

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

@kylebarron
Copy link
Copy Markdown
Member Author

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.

@prusswan
Copy link
Copy Markdown

prusswan commented Dec 5, 2025

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

@kylebarron
Copy link
Copy Markdown
Member Author

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

@eKerney
Copy link
Copy Markdown

eKerney commented Mar 12, 2026

@kylebarron has anyone considered geopy integration into lonboard?
Perhaps it could be an optional dependency. They have quite a few providers, and several free options for small requests: Nominatim, Geocodio, OpenCage etc... geopy.geocoders
Even dare I say... ESRI has a geolocation API that doesn't require a key for small numbers of requests.

@prusswan
Copy link
Copy Markdown

@kylebarron has anyone considered geopy integration into lonboard? Perhaps it could be an optional dependency. They have quite a few providers, and several free options for small requests: Nominatim, Geocodio, OpenCage etc... geopy.geocoders Even dare I say... ESRI has a geolocation API that doesn't require a key for small numbers of requests.

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

@kylebarron
Copy link
Copy Markdown
Member Author

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

@eKerney
Copy link
Copy Markdown

eKerney commented Mar 24, 2026

Cross this one off the list, nice work Kyle! ✔️

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

Labels

help wanted Extra attention is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Geocoding/search plugin/widget/control

3 participants