smeijer / leaflet-geosearch

A geocoding/address-lookup library supporting various api providers.
https://smeijer.github.io/leaflet-geosearch/
MIT License
1.04k stars 273 forks source link

Combining geosearch with What3Words search #348

Closed Vollando closed 1 year ago

Vollando commented 1 year ago

Hi I'm trying to have the leaflet geosearch work while also providing the what3words autosuggest functionality. An example of the intended design can be found on their website https://what3words.com/pretty.needed.chill

image

Looking at their documentation the normal way of doing this would be to wrap a input element in the HTML file in the AutoSuggest component. Because the GeoSearchControl is created programmatically I can't see a way to do this.

smeijer commented 1 year ago

I recommend creating a custom provider.