I installed Nominatim locally in my machine, the serve is running perfectly. I can make requests from my browser with "http://localhost:8088/search.php?q=Example" and it returns well, but when i try to use it in a python code i have a problem, the request comes as search?q=Example and not search.php?q=Example so the serve cant complete the request. My code: from geopy.geocoders import Nominatim geolocator = Nominatim(domain='localhost:8088', scheme='http') location = geolocator.geocode('Rua Peru Indaiatuba SP') Serve response: [404]: GET /search?q=Rua+Peru+Indaiatuba+SP&format=json&limit=1%20-%20No%20such%20file%20or%20directory - No such file or directory asked 14 Apr '22, 04:49 Guilherme Go... |
How do you deploy Nominatim? Do you use Apache or nginx?