Streets

Autocomplete for street segments

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

GET/vejstykker/autocomplete

Authentication

Authorizationstringheaderrequired

Your API key as a Bearer token.

Parameters

idstringquery

The street segment's unique UUID.

navngivenvej_idstringquery

Finds the street segments for the named road

kodeintegerquery

street code. 4 digits.

kommunekodeintegerquery

Municipality code. 4 digits. Example: 0101 for the City of Copenhagen.

navnstringquery

Street name. Case-sensitive. Wildcard searches can be used.

postnrintegerquery

Postcode. 4 digits.

qstringquery

See the description under autocomplete

autocompletestringquery

Performs the search as an autocomplete search.

Show all 20 parametersShow fewer
polygonstringquery

Find the vejstykker (street segments) that overlap 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 vejstykker (street segments) that overlap 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}.

sridintegerquery
fuzzystringquery

Enables fuzzy search

regexstringquery

Finds the street segments matching the given regular expression.

medtagnedlagtestringquery

Includes discontinued street segments in the response.

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/vejstykker/autocomplete" \
  --header "Authorization: Bearer $API_KEY"
Try it
GET https://api.danskadresseapi.dk/dawa/vejstykker/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."
  }
}
Autocomplete for street segments — DanskAdresseAPI