Cadastre

Autocomplete for cadastral districts (ejerlav)

Autocomplete for cadastral districts (ejerlav). The same parameters as for search can be used, but note that the q parameter is interpreted differently. Read more under autocomplete.

GET/ejerlav/autocomplete

Authentication

Authorizationstringheaderrequired

Your API key as a Bearer token.

Parameters

kodestringquery

The unique code of the ejerlav (cadastral district). Represented by up to 7 digits. Example: ”170354” for the ejerlav (cadastral district) ”Eskebjerg By, Bregninge”.

navnstringquery

The name of the cadastral district (ejerlav).

qstringquery

See the description under autocomplete

autocompletestringquery

Performs the search as an autocomplete search.

polygonstringquery

Finds the cadastral districts (ejerlav) that overlap the given polygon. The polygon is given as an array of coordinates, in the same way as coordinates are given in GeoJSON's polygon. Note that polygons must be closed, i.e. the first and last coordinate must be identical. Either (ETRS89/UTM32 or) WGS84/geographic may be used as the coordinate system. This is set with the srid parameter, see above. Example: polygon=[[[10.3,55.3],[10.4,55.3],[10.4,55.31],[10.4,55.31],[10.3,55.3]]].

cirkelstringquery

Finds the cadastral districts (ejerlav) that overlap the circle given by the coordinate (x,y) and radius r. ETRS89/UTM32 or WGS84/geographic may be used as the coordinate system. The radius is given in metres. cirkel={x},{y},{r}.

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

formatstringquery

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

Show all 13 parametersShow fewer
callbackstringquery

Returns the output as JSONP. See Data formats.

noformatstringquery

Omits whitespace formatting from the output

ndjsonstringquery

Returns the output as Newline Delimited JSON

sideintegerquery

Which page to return. See Pagination.

per_sideintegerquery

Number of results per page. See Pagination.

Request

curl --request GET \
  --url "https://api.danskadresseapi.dk/dawa/ejerlav/autocomplete" \
  --header "Authorization: Bearer $API_KEY"
Try it
GET https://api.danskadresseapi.dk/dawa/ejerlav/autocomplete

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."
  }
}