Autocomplete across addresses, street names and postal codes
Type-ahead across addresses, street names and postal codes — the endpoint an address field calls on every keystroke. Fuzzy and typo-tolerant. Narrow the result type with type and the geography with postnr.
Authentication
Your API key as a Bearer token.
Parameters
Free-text search (prefix + fuzzy).
Result type. Omitted = addresses. vejnavn gives one suggestion per street name, postnummer one per postal code (data then holds navn/href and nr/navn/stormodtager/href respectively).
adresseadgangsadressevejnavnpostnummerRestrict to a postal code.
Restrict to a municipality (4 digits).
Number of suggestions. Wins over limit if both are sent.
Older name for the number of suggestions (max 50). Use per_side.
dawa = the response comes from the DAWA engine (same as /dawa/autocomplete): step-wise with street-name suggestions first and caretpos in the middle of the text. The response has the header X-Source: dawa-engine (or v1-fallback if the engine does not answer). Does not apply to type=postnummer.
1 = exactly DAWA's fields (omits confidence, forslag and similarity).
Request
Response
List of suggestions
dataobjectThe object itself: the address/access address (with id), the street name (navn, href) or the postal code (nr, navn, stormodtager, href).
typestringadresse | adgangsadresse | vejnavn | postnummer
tekststringcaretposintegerWhere the cursor should be placed after the suggestion is chosen.
forslagstekststringThe text shown in the suggestion list.
stormodtagerpostnrbooleanAddress suggestions only.
