DAWA-kompatibel

DAWA combined type-ahead: vejnavn → adgangsadresse → adresse

The body is DAWA’s own representation: a bare object (single lookups) or a bare array (lists, type-aheads), shaped by struktur (nestet | mini | flad) and format (json | geojson | csv); callback wraps JSON as JSONP.

get/dawa/autocomplete

Request

  • Base URL: https://api.grundfast.dk
  • URL: https://api.grundfast.dk/dawa/autocomplete
  • Auth: one of:
    • HTTP bearer
    • API key in query parameter token
    • API key in query parameter token

Query parameters

qstring

Search text.

per_sideinteger

Number of suggestions (default 20, at most 100).

caretposinteger

Caret position in q.

typestring

Last stage: vejnavn, adgangsadresse or adresse (default).

startfrastring

First stage: vejnavn (default), adgangsadresse or adresse.

fuzzystring

Accepted; search is always typo-tolerant.

idstring

Resolve this id directly.

adgangsadresseidstring

Go straight to the units of this adgangsadresse.

kommunekodestring

Kommunekode. Several values separated by |.

postnrstring

Postnummer. Several values separated by |.

supplerendebynavnstring

Include the supplerende bynavn in the text (default true).

multilinjestring

Line breaks in forslagstekst (default false).

stormodtagerpostnumrestring

Accepted; has no effect.

format'json' | 'geojson' | 'geojsonz' | 'csv'

json (default), geojson, geojsonz or csv.

struktur'nestet' | 'mini' | 'flad'

nestet (default for json), mini or flad.

srid'4326' | '25832'

Output (and cirkel/polygon input) reference system: 4326 (default) or 25832.

callbackstring

JSONP callback name.

noformatstring

Compact JSON instead of DAWA’s pretty-printing.

Response

OK. The body is DAWA’s own representation: a bare object (single lookups) or a bare array (lists, type-aheads), shaped by struktur (nestet | mini | flad) and format (json | geojson | csv); callback wraps JSON as JSONP.

object[] required

Changes

No recorded changes to this operation across all 1 revision of this API.