Photon is an elasticsearch based open source geocoder which I found is one of the best open-source Geocoders.
I've managed to integrate the same with Traccar server. Since the protocol is similar to BAN (Base Adresse Nationale), a slight modification to the BanGeocoder.java file could get the job done and the steps are as follows:
Install Photon on your local server by following this link.
Add the following parameters to traccar.xml file
<entry key='geocoder.enable'>true</entry>
<entry key='geocoder.type'>ban</entry>
Replace https://api-adresse.data.gouv.fr/reverse/?lat=%f&lon=%f from BanGeocoder.java Line 30 with http://localhost:2322/reverse/?lat=%f&lon=%f
Remove line 41 address.setCountry("FR"); from BanGeocoder.java
Build and assemble traccar server to create a new tracker-server.jar file
Stop the traccar server
Replace the tracker-server.jar file with the newly created one.
Restart the traccar server
Hope this helps!
I'd be keen for photon support as well
Photon is an elasticsearch based open source geocoder which I found is one of the best open-source Geocoders.
I've managed to integrate the same with Traccar server. Since the protocol is similar to BAN (Base Adresse Nationale), a slight modification to the BanGeocoder.java file could get the job done and the steps are as follows:
Install Photon on your local server by following this link.
Add the following parameters to traccar.xml file
<entry key='geocoder.enable'>true</entry> <entry key='geocoder.type'>ban</entry>Replace
https://api-adresse.data.gouv.fr/reverse/?lat=%f&lon=%ffrom BanGeocoder.java Line 30 withhttp://localhost:2322/reverse/?lat=%f&lon=%fRemove line 41
address.setCountry("FR");fromBanGeocoder.javaBuild and assemble traccar server to create a new
tracker-server.jarfileStop the traccar server
Replace the tracker-server.jar file with the newly created one.
Restart the traccar server
Hope this helps!