smeijer / leaflet-geosearch

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

local nominatim search #119

Closed t3asp00n closed 7 years ago

t3asp00n commented 7 years ago

I've been playing around with offline maps and in order to do geocoding I installed a local Nominatim server, but I'm having trouble finding a way to change the url on geosearch so it points to my local Nominatim search. I've changed the url found on OpenStreetMap provider, bundle.js and bundle.min.js and no luck. Any help would be much appreciated.

smeijer commented 7 years ago

It's currently not possible to change the domain part of the openstreetmap provider. So what you can do is write your own provider by copying 99% of the one provided to you. A PR to make the domain part configurable would also be welcome.

This is the file you want to copy: https://github.com/smeijer/leaflet-geosearch/blob/develop/src/providers/openStreetMapProvider.js

smeijer commented 7 years ago

I'm closing this one for now. Please let me know if you need any help.