Reverse geocoding issue

Dean6 years ago

I had the server installed and working. I have since reinstalled and am able to track my cellphone and gps103 tracker successfully.

I used :

<entry key='geocoder.enable'>true</entry>
<entry key='geocoder.type'>nominatim</entry>
<entry key='geocoder.url'>http://nominatim.openstreetmap.org/reverse</entry>

I have now opened an account at LocationIQ and have added the required : <entry key='geocoder.key'>xxxxxxxx</entry>

They only supply me with an access token.

Server and Wrapper logs contain no errors.

Is there a hidden outgoing port used for geocoding that I need top open?

Error when clicking on show address : NullPointerException (ServerResource:56 < ...)
Anton Tananaev6 years ago

You need to configure LocationIQ URL as well, obviously.

Dean6 years ago

Hi Anton,

My geocoding config:

    <entry key='geocoder.enable'>true</entry>
    <entry key='geocoder.type'>nominatim</entry>
    <entry key='geocoder.url'>http://locationiq.org/v1/reverse.php</entry>
    <entry key='geocoder.key'>MY KEY</entry>

I have no log errors but also have no geocoding entries in the logs either

i have disabled server firewall and restarted service but no luck

Do you have an idea as to what the problem may be?

I have tried to revert to the google geocoding but have the same problem there.

If I input http://locationiq.org/v1/reverse.php into my browser on the same machine I get a response of :

This XML file does not appear to have any style information associated with it. The document tree is shown below.

<reversegeocode timestamp="Sat, 01 Sep 18 17:10:57 +0000" attribution="© LocationIQ.com CC BY 4.0, Data © OpenStreetMap contributors, ODbL 1.0" querystring="">
<error>Invalid key</error>
</reversegeocode>
Anton Tananaev6 years ago

What geocoding records are you expecting to see in the log? If it's working, you won't see any.

Dean6 years ago

That is my point. I don't see any errors and on the map interface when selecting show address i
I get the null point exception error.

So it is working but actually it is not.

Where would I check to see what the problem is?

I have seen some posts using http and others using https, I have tried both.

This is why I have asked about a possible port that geocode requires

Is there any specific permissions that may be required on default.xml ?

Anton Tananaev6 years ago

Why are you talking about default.xml? You shouldn't touch that file.

Pratik Sharma6 years ago

I am struck too like Dean!

Any help plz...