Traccar reverse geocoding service

Anton Tananaev 4 days ago

We're excited to introduce Traccar Geocoder - a hyper-optimized reverse geocoding service.

As always, it's fully open source and easy to self-host:

It is 100–1000x more efficient than Nominatim, with a full Earth index of just 18 GB. A single country's dataset is small enough to run on a small VPS - or alongside your existing Traccar server.

We also offer hosted plans that we believe are the most competitively priced on the market:

If you know of a cheaper alternative, we'd love to hear about it - and we're happy to revisit our pricing accordingly.

Cristian 4 days ago

Missing API key

What is the correct format for the georeferencing request?

Anton Tananaev 4 days ago
Cristian 4 days ago

Invalid API key

Is there another API key besides the one in my user account?

Anton Tananaev 4 days ago

Which user account? You have to use the one you created in the service.

Cristian 4 days ago

If I'm self-hosting, do I still need a service key?

Anton Tananaev 4 days ago

Yes. From your own service.

Cristian 4 days ago

It works perfectly

hypoclone 4 days ago

Oh great! Thanks Anton, I have just deployed nominatim few days ago, I will check this

jay 4 days ago

is this correct in traccar xml.

<entry key='geocoder.type'>nominatim</entry>
<entry key='geocoder.url'>http://localhost:3000/reverse?key=myapi_key_generated</entry>
hypoclone 4 days ago

@jay i believe it should be

<entry key='geocoder.enable'>true</entry>
<entry key='geocoder.type'>nominatim</entry>
<entry key='geocoder.url'>http://localhost:3000/reverse</entry>
<entry key='geocoder.key'>myapi_key_generated</entry>
<entry key='geocoder.onRequest'>false</entry>
<entry key='geocoder.ignorePositions'>false</entry>
<entry key='geocoder.reuseDistance'>10</entry>

you can check documentation page Reverse Geocoding

jay 4 days ago

Thank you hypoclone. working like a charm

Slawek 2 days ago

It seems that for the Netherlands, we do not have a country and country_code, for example

lat=52.3731&lon=4.8929

{
  "display_name": "Dam 2, Amsterdam",
  "address": {
    "house_number": "2",
    "road": "Dam",
    "city": "Amsterdam",
    "state": "Noord-Holland"
  }
}
Anton Tananaev 2 days ago

Did you use a country extract or the whole planet?

Slawek 2 days ago

I used for 3 countries, Germany, Poland, Netherlands, only for Netherlands is missing.

{
  "display_name": "Spandauer Straße 4, 10178, Deutschland",
  "address": {
    "house_number": "4",
    "road": "Spandauer Straße",
    "state": "Berlin",
    "postcode": "10178",
    "country": "Deutschland",
    "country_code": "DE"
  }
}
{
  "display_name": "Marszałkowska 94/98, Warszawa, Polska",
  "address": {
    "house_number": "94/98",
    "road": "Marszałkowska",
    "city": "Warszawa",
    "state": "województwo mazowieckie",
    "county": "Warszawa",
    "country": "Polska",
    "country_code": "PL"
  }
}
Already downloaded: netherlands-latest.osm.pbf
Already downloaded: poland-latest.osm.pbf
Already downloaded: germany-latest.osm.pbf
Building index...
Processing /data/pbf/germany-latest.osm.pbf...
  Pass 1: scanning relations...
  Pass 2: processing nodes, ways, and areas...
Collected 1M addresses...
Collected 2M addresses...
Collected 3M addresses...
Collected 4M addresses...
Processed 1M street ways...
Collected 5M addresses...
Collected 6M addresses...
Collected 7M addresses...
Collected 8M addresses...
Collected 9M addresses...
Processed 2M street ways...
Collected 10M addresses...
Collected 11M addresses...
Collected 12M addresses...
Processed 10K admin boundaries...
Collected 13M addresses...
Collected 14M addresses...
Collected 15M addresses...
Collected 16M addresses...
Collected 17M addresses...
Collected 18M addresses...
Processed 20K admin boundaries...
Collected 19M addresses...
Processed 3M street ways...
Processed 30K admin boundaries...
Processing /data/pbf/netherlands-latest.osm.pbf...
  Pass 1: scanning relations...
  Pass 2: processing nodes, ways, and areas...
Collected 20M addresses...
Collected 21M addresses...
Collected 22M addresses...
Collected 23M addresses...
Collected 24M addresses...
Collected 25M addresses...
Collected 26M addresses...
Collected 27M addresses...
Collected 28M addresses...
Collected 29M addresses...
Processed 40K admin boundaries...
Processed 4M street ways...
Processing /data/pbf/poland-latest.osm.pbf...
  Pass 1: scanning relations...
  Pass 2: processing nodes, ways, and areas...
Collected 30M addresses...
Collected 31M addresses...
Collected 32M addresses...
Collected 33M addresses...
Processed 50K admin boundaries...
Collected 34M addresses...
Processed 60K admin boundaries...
Collected 35M addresses...
Processed 70K admin boundaries...
Done reading:
  4882441 street ways
  35384377 address points (19742905 from buildings)
  99 interpolation ways
  74223 admin/postcode boundaries (78724 polygon rings)
Resolving interpolation endpoints...
Resolved 8/99 interpolation ways
Deduplicating...
Writing index files to /data/index...
geo index: 15219137 cells (4882441 ways, 35384377 addrs, 99 interps)
admin index: 10841 cells, 78724 polygons
strings.bin: 13379475 bytes
Done.

Index built.
Starting server...
Loading index from /data/index...
Starting HTTP server on 0.0.0.0:3000...