mediagis / nominatim-docker

100% working container for Nominatim
Creative Commons Zero v1.0 Universal
1.09k stars 444 forks source link

Reverse not working #517

Open janderadutra opened 9 months ago

janderadutra commented 9 months ago

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 commented 9 months ago

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"