Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reverse not working #517

Open
janderadutra opened this issue Jan 5, 2024 · 1 comment
Open

Reverse not working #517

janderadutra opened this issue Jan 5, 2024 · 1 comment
Labels

Comments

@janderadutra
Copy link

docker run -it
-e PBF_URL=https://download.geofabrik.de/south-america-latest.osm.pbf
-e REPLICATION_URL=https://download.geofabrik.de/south-america-updates/
-p 8080:8080
--name nominatim
mediagis/nominatim:4.3

curl http://localhost:8080/search.php?q=avenida%20paulista%20Sao%20Paulo
[{"place_id":13421950,"licence":"Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright","osm_type":"way","osm_id":351522745,"boundingbox":["-7.9307134","-7.9306115","-34.8863776","-34.886168"],"lat":"-7.9306589","lon":"-34.8862731","display_name":"Avenida Paulista, Vila Avilâ, Arthur Lundgren II, Paulista, Região Geográfica Imediata do Recife, Região Metropolitana do Recife, Região Geográfica Intermediária do Recife, Pernambuco, Região Nordeste, 53417-400, Brasil","place_rank":26,"category":"highway","type":"secondary","importance":0.30000999999999994}]

curl http://localhost:8080/reverse.php?lat=-7.9306589&lon=-34.8862731
Error Need coordinates or OSM object to lookup.

There was no error during installation, any ideas?

@mtmail
Copy link
Contributor

mtmail commented Jan 5, 2024

The Unix/Linux shell might interpret & as end of the command only execute curl http://localhost:8080/reverse.php?lat=-7.9306589

Can you try putting the URL in quotes? curl "http://localhost:8080/reverse.php?lat=-7.9306589&lon=-34.8862731"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants