DanskAdresseAPIv1
Going further

Spatial queries

Find addresses within an area — polygon, circle or nearest point.

Three ways to ask geographically. All of them use srid to pick the coordinate system.

Within a circle

Bash
curl "https://api.danskadresseapi.dk/v1/adresser?cirkel=12.5683,55.6761,500" \
  -H "Authorization: Bearer YOUR_KEY"

cirkel={x},{y},{radius} — the radius is in metres.

Within a polygon

Bash
curl "https://api.danskadresseapi.dk/v1/adresser?polygon=[[[12.5,55.6],[12.6,55.6],[12.6,55.7],[12.5,55.6]]]" \
  -H "Authorization: Bearer YOUR_KEY"

The polygon must be closed — the first and last coordinate must be identical.
If it is not closed, the request is rejected.

Nearest address

Bash
curl "https://api.danskadresseapi.dk/v1/adresser/reverse?x=12.5683&y=55.6761" \
  -H "Authorization: Bearer YOUR_KEY"

The coordinate system

The default is WGS84 (longitude/latitude), which is what GPS and maps use. If you need ETRS89/UTM32, set srid — and remember that x is then the easting, not the longitude.

Distances are straight-line, not routed. An address 200 m away as the crow flies
may be on the other side of a stream.

Spatial queries — DanskAdresseAPI