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.
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.