Postcodes

Reverse geocoding — nearest supplementary town name (v2)

Returns the supplementary town name for the given coordinate.

GET/supplerendebynavne2/reverse

Authentication

Authorizationstringheaderrequired

Your API key as a Bearer token.

Parameters

formatstringquery

Returns the output in a format other than JSON. See Data formats.

callbackstringquery

Returns the output as JSONP. See Data formats.

noformatstringquery

Omits whitespace formatting from the output

ndjsonstringquery

Returns the output as Newline Delimited JSON

sridintegerquery

Specifies the SRID of the coordinate system in which geospatial parameters are specified. The default is 4326 (WGS84 / geographic coordinates). For ETRS89 / UTM zone 32 North, use 25832

xnumberqueryrequired

X coordinate. (If ETRS89/UTM32 is used, the easting value is specified.) If WGS84/geographic is used, the latitude value is specified.

ynumberqueryrequired

Y coordinate. (If ETRS89/UTM32 is used, the northing value is specified.) If WGS84/geographic is used, the longitude value is specified.

strukturstringquery

The struktur parameter specifies whether a flad or nestet response structure is required. The default is nestet for JSON and flad for GeoJSON.

Request

curl --request GET \
  --url "https://api.danskadresseapi.dk/dawa/supplerendebynavne2/reverse" \
  --url-query "x=<x>" \
  --url-query "y=<y>" \
  --header "Authorization: Bearer $API_KEY"
Try it
GET https://api.danskadresseapi.dk/dawa/supplerendebynavne2/reverse

Response

application/json

Success response. The MIME type of the response depends on the format parameter.

—

401Missing key
{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid API key."
  }
}
Reverse geocoding — nearest supplementary town name (v2) — DanskAdresseAPI