I'm running Nominatim 2.2.0 on my server, and just finished importing planet data. When I do a reverse geocode lookup from my personal laptop as follows:
It works perfectly. But when I run the exact same thing on my server (that's running Nominatim) with curl:
or
I get "unable to geocode" error. The only difference is that it works when I use my personal laptop (or query remotely) but doesn't work when I do it on a localhost (or query from the same server/computer that's running Nominatim/PostgreSQL). When I look through my apache log, I get the following:
What could be wrong here? Thanks in advance! asked 12 Mar '14, 18:41 baekacaek |
Figured out the problem! Turns out some parameters were being escaped for whatever reason. Works when I do curl 'http://my-ip-address/nominatim/reverse?format=xml&lat=51.507020&lon=-0.100571&zoom=18&addressdetails=1' with the ' ' around the URL answered 12 Mar '14, 23:48 baekacaek Yes, the character
(13 Mar '14, 07:42)
scai ♦
|
Just to be clear - are you using the same "curl" command on your laptop, or are you comparing a request made through a web browser on your laptop with a request made through curl on the server?
On my laptop, I'm using a normal browser. Just to be sure curl is working correctly on my server, I tried different websites and it seems to be OK.