DanskAdresseAPIv1
Veje

Fetch a single named road

Fetches a single named road by its id.

GET/v1/navngivneveje/{id}

Authentication

Authorizationstringheaderrequired

Your API key as a Bearer token.

Parameters

idstringpathrequired

The resource's UUID.

includestringquery

Set to naboskab to include the road's nearest forest, lake, coast, station, airport and so on in the response. The distance is straight-line metres from the road's midpoint to the centre of the object — not a routed distance. Only objects within 12 km are counted; types with no neighbour that close are left out. Source: GeoDanmark (CC BY 4.0).

Request

curl --request GET \
  --url "https://api.danskadresseapi.dk/v1/navngivneveje/<id>" \
  --header "Authorization: Bearer $API_NOEGLE"

Response

application/json

Navngiven vej

naboskabobject[]

Kun med når ?include=naboskab er sat. Sorteret efter afstand.

Show child attributes(2)
naboskab.typeenum<string>
naboskab.afstand_minteger

Fugleflugt i meter.

200Eksempel
{
  "naboskab": [
    {
      "type": null,
      "afstand_m": 0
    }
  ]
}
401Missing key
{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid API key."
  }
}