---
title: "Geocode Address"
method: GET
path: "/v1/geocode"
tags: ["internal"]
---

# Geocode Address

`GET /v1/geocode`

## Request

- Base URL: `https://api.companydata.dk` (the document declares no server; this is the origin it was published from)
- URL: `https://api.companydata.dk/v1/geocode`
- Auth: HTTP bearer

Geocode a Danish address by searching the local addresses collection.

Tries multiple matching strategies:
1. Parsed address components → lookup_key match
2. Regex prefix match on vejnavn + postnr
3. Text search fallback

Returns the best matching address with coordinates.

## Query parameters

- `q` string, required: Address search query

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/companydata/apis/companydata-dk-api.md) · [All operations](https://skmtc.dev/companydata/apis/companydata-dk-api/llms.txt) · [OpenAPI document](https://skmtc.dev/companydata/apis/companydata-dk-api/revisions/1cc6c361ae64?raw)
