Streets

Autocomplete for street names

Autocomplete for street names. The same parameters as for search can be used, but note that the q parameter is interpreted differently. Read more under autocomplete.

GET/vejnavne/autocomplete

Authentication

Authorizationstringheaderrequired

Your API key as a Bearer token.

Parameters

navnstringquery

Street name. Case-sensitive.

postnrintegerquery

Postcode. 4 digits.

kommunekodeintegerquery

Municipality code. 4 digits. Example: 0101 for the Municipality of Copenhagen. For backward compatibility, the parameter also affects which postcodes are returned for each street name. Only postcodes within the specified municipality are included.

qstringquery

See the description under autocomplete

autocompletestringquery

Performs the search as an autocomplete search.

fuzzystringquery

Enables fuzzy search

polygonstringquery

Find the street names where the street geometry overlaps the specified polygon. The polygon is specified as an array of coordinates in the same way as the coordinates are specified in GeoJSON's polygon. Note that polygons must be closed, i.e. the first and last coordinates must be identical. The coordinate reference system can be (ETRS89/UTM32 or) WGS84/geographic. This is specified using 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

Find the street names where the street geometry overlaps the circle specified by the coordinate (x,y) and radius r. The coordinate reference system can be (ETRS89/UTM32 or) WGS84/geographic. The radius is specified in metres. cirkel={x},{y},{r}.

Show all 14 parametersShow fewer
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

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/vejnavne/autocomplete" \
  --header "Authorization: Bearer $API_KEY"
Try it
GET https://api.danskadresseapi.dk/dawa/vejnavne/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."
  }
}