v1

Public transport stops around a coordinate

Bus stops, train stations, metro, light rail and ferry terminals within a radius of the point, nearest first. Give either lat+lon (WGS84) or x+y (EPSG:25832). typer are the modes of transport that actually serve the stop according to the timetable; platforms are grouped under their station. The distance is straight-line metres. Source: Rejseplanen Labs (GTFS timetable data), updated weekly.

GET/v1/stoppesteder

Authentication

Authorizationstringheaderrequired

Your API key as a Bearer token.

Parameters

latnumberquery

Latitude in WGS84 (EPSG:4326).

54–58
lonnumberquery

Longitude in WGS84 (EPSG:4326).

7–16
xnumberquery

X coordinate in the coordinate system given by srid.

ynumberquery

Y coordinate in the coordinate system given by srid.

radiusintegerquery

Radius in metres (default 1000, at most 5000).

default: 10001–5000
typestringquery

Only stops served by this mode of transport.

Allowed values:bustogmetroletbanefaerge
per_sideintegerquery

Results per page. The limit is set per endpoint — see default and maximum.

default: 201–200
fieldsstringquery

Comma-separated list of fields to include in the response (sparse fieldset). Omitted = all fields.

Request

curl --request GET \
  --url "https://api.danskadresseapi.dk/v1/stoppesteder" \
  --header "Authorization: Bearer $API_KEY"
Try it
GET https://api.danskadresseapi.dk/v1/stoppesteder

Response

application/json

Stops within the radius (may be empty)

countinteger
kildestring
resultsobject[]
Show child attributes(5)
results.idstring
results.navnstring
results.typerenum<string>[]
results.afstand_minteger
results.koordinatobject
Show child attributes(2)
results.koordinat.wgs84_latnumber
results.koordinat.wgs84_lonnumber
radius_minteger
200Eksempel
{
  "count": 0,
  "kilde": "…",
  "results": [
    {
      "id": "…",
      "navn": "…",
      "typer": [
        "bus"
      ],
      "afstand_m": 0,
      "koordinat": {
        "wgs84_lat": 0,
        "wgs84_lon": 0
      }
    }
  ],
  "radius_m": 0
}
401Missing key
{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid API key."
  }
}