This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Embed Nominatim Map and search bar on other website

0

Hello, I managed to get my own Nominatim Server running. I also activated the website and I now see there a nice big map, a search bar / box and results that are displayed nicely.

I have another website and I would like to embed the above elements with workin functionality in it, is it possible and if yes, how would I do that?

Thank your for your time and help, yours truly, Stephano

asked 17 Aug '16, 14:37

Stephano007's gravatar image

Stephano007
617710
accept rate: 0%


One Answer:

0

To create a map look at the tutorials on http://leafletjs.com/

There is a plugin for leaflet https://github.com/perliedman/leaflet-control-geocoder that adds a searchbox. In the L.Control.Geocoder.Nominatim(options) option you can set the serviceUrl to point to your server URL.

answered 17 Aug '16, 15:38

mtmail's gravatar image

mtmail
4.8k1574
accept rate: 27%

Source code available on GitHub .