DenisCarriere / geocoder

:earth_asia: Python Geocoder
http://geocoder.readthedocs.org
MIT License
1.62k stars 286 forks source link

Offline Nominatim Server #424

Open bensilver95 opened 4 years ago

bensilver95 commented 4 years ago

I successfully followed the instructions for setting up my own Nominatim server that are linked to in the geocoder documentation for OSM. I am using Ubuntu 18 on a Linux server.

However, it's not clear to me what happens next. The documentation provides the following code as an example:

url = 'http://localhost/nominatim/' url = 'localhost' g = geocoder.osm("New York City", url=url)

Does localhost refer to the IP address of my Linux server? Also, why is url defined in two different ways in the above example? I tried doing g = geocoder.osm("New York City", url = "http://myLinuxIP/nominatim") but no luck.