Skip to content

Geocoding

geocoder

With the help of the service geocoder the coordinates are calculated to address data. If available, address information can also be determined from coordinates.

The following examples should help understanding how to use the interface.

Geocode Address Text

Used if the address of a destination is known but the coordinates are needed.

Request

GET /geocoder

Example curl-command

curl -X GET "https://api.maptrip.de/v1/geocoder?provider=TomTom&address=Berlin&country=DEU&limit=1" -H "accept: application/json" -H "Authorization: Bearer token"

Response

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
[
  {
    "address": {
      "ags": 1415680,
      "city": "Köln",
      "coordinate": {
        "lat": 50.94306,
        "lon": 6.9578
      },
      "country": "DEU",
      "housenumber": 11,
      "part": "Altstadt-Nord",
      "street": "Trankgasse",
      "zipcode": 50667
    },
    "probability": 100,
    "quality": "AAAA"
  }
]