Closed dev1ninja closed 1 year ago
Hey there,
you have two options for this one which both more or less do the same thing.
You can implement your own geocoder, taking the nominatim one as a guide
extend the nominatim one via
class YourGeocoder extends L.Control.Geocoder.Nominatim {
// override the geocode method here
}
depending on what your geocoding server does, you might also use an existing geocoder and replace the serviceUrl
const geocoder = L.Control.Geocoder.nominatim({ serviceUrl: "Geo.mygovernmentonline.org" });
I understand. This is very helpful. Thank you!
Hi there, I'm running my own Geocoder Service(I installed based on installation guide) It is Geo.mygovernmentonline.org. And here is my code.
As I mentioned in Title, now I would like to use my own Geocoder Service instead of
geocoder: L.Control.Geocoder.nominatim()
,var geocoder = L.Control.Geocoder.nominatim()
Please help me. Thank you!