Interesting project. What are the server requirements to run a full reverse geocoding server?
As for supporting it in Traccar, unless it uses the same format as some other supported service, it won't work. If you are interested in the implementation, send me an email.
The results are in JSON format. The whole database expanded to 55 GB but there is an option to have specific country database to have the search run faster. I have installed it on Ubuntu 16.04 with 8GB RAM, this is bit slow but with reduced data it should be sufficient enough.
Result format:
{
"features": [
{
"properties": {
"name": "Berlin",
"state": "Berlin",
"country": "Germany",
"osm_key": "place",
"osm_value": "city",
"osm_type": "N",
"osm_id": 240109189
},
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
13.3888599,
52.5170365
]
}
},
{
"properties": {
"name": "Berlin Olympic Stadium",
"street": "Olympischer Platz",
"housenumber": "3",
"postcode": "14053",
"state": "Berlin",
"country": "Germany",
"osm_key": "leisure",
"osm_value": "stadium",
"osm_type": "W",
"osm_id": 38862723,
"extent": [
13.23727,
52.5157151,
13.241757,
52.5135972
]
},
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
13.239514674078611,
52.51467945
]
}
}]
}
Regards,
Shankar
Is that a result for reverse geocoding? The format is somewhat different from supported providers, but it should be fairly easy to add support for it.
This is output for reverse geocoding. URL: http://localhost:2322/reverse?lon=174.762805&lat=-36.871257
{
"features":[
{
"properties":{
"osm_key":"building",
"extent":[
174.7629842,
-36.8705562,
174.7636291,
-36.8712097
],
"street":"Edwin Street",
"name":"Ministry of Education",
"state":"Auckland",
"osm_id":269468256,
"osm_type":"W",
"postcode":"1024",
"osm_value":"yes",
"city":"Albert-Eden",
"country":"New Zealand"
},
"type":"Feature",
"geometry":{
"type":"Point",
"coordinates":[
174.7633136040035,
-36.8710223
]
}
}
],
"type":"FeatureCollection"
}
It is still different. Send me an email if you need help with implementing support for this geocoder.
Hi,
Is it possible to have Traccar to talk to Photon Geocoder (https://github.com/komoot/photon) instead of Google or Gisgraphy. I have installed Photon with all the data locally and it works well as standalone.
Regards,
Shankar.