Reverse Geocoding

Mikkel Munkholm4 years ago

Hi,

My company is just starting to implement traccar for tracking of our fire trucks etc.

But now we are looking into reverse geocoding, which works with the locationIQ platform for testing. I would however, like to use a platform supplied by the danish government which is free.

Is there any way i can setup the geocoding to use/accept the following setup:

https://api.dataforsyningen.dk/adgangsadresser/reverse?x=LATITUDE&y=LONGITUDE&struktur=mini

Tested on an adress, gives the following result:

{
  "id": "c48ea30a-b847-4422-a58e-ab6072a7a34c",
  "status": 1,
  "darstatus": 3,
  "vejkode": "0375",
  "vejnavn": "Kokkedal Industripark",
  "adresseringsvejnavn": "Kokkedal Industriprk",
  "husnr": "14B",
  "supplerendebynavn": null,
  "postnr": "2980",
  "postnrnavn": "Kokkedal",
  "stormodtagerpostnr": null,
  "stormodtagerpostnrnavn": null,
  "kommunekode": "0210",
  "x": 12.47991413,
  "y": 55.90323669,
  "href": "https://api.dataforsyningen.dk/adgangsadresser/c48ea30a-b847-4422-a58e-ab6072a7a34c",
  "betegnelse": "Kokkedal Industripark 14B, 2980 Kokkedal"
}

Hope you can help me.

Thanks

Anton Tananaev4 years ago

You have to implement a new geocoder in the code to support this format.