Why not ask your question on the new OpenStreetMap Community Forum?

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%20Gon%C3%A7alves%20Horta's gravatar image

Guilherme Go...
accept rate: 0%

edited 14 Apr '22, 05:00

How do you deploy Nominatim? Do you use Apache or nginx?

(14 Apr '22, 08:33) lonvia
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 14 Apr '22, 04:49

question was seen: 661 times

last updated: 14 Apr '22, 08:33

powered by OSQA