---
title: "initial location to view the map at after loading based on where public transport should be visible"
method: GET
path: "/api/v1/map/initial"
tags: ["map"]
---

# initial location to view the map at after loading based on where public transport should be visible

`GET /api/v1/map/initial`

## Response `200`

latitude, longitude, zoom level to set the map to, and routing options configuration and limits

- object
  - `lat` number, required — latitude
  - `lon` number, required — longitude
  - `zoom` number, required — zoom level
  - `serverConfig` ServerConfig, required
    - `motisVersion` string, required — the version of this MOTIS server
    - `hasElevation` boolean, required — true if elevation is loaded
    - `hasRoutedTransfers` boolean, required — true if routed transfers available
    - `hasStreetRouting` boolean, required — true if street routing is available
    - `maxOneToManySize` number, required — limit for the number of `many` locations for one-to-many requests
    - `maxOneToAllTravelTimeLimit` number, required — limit for maxTravelTime API param in minutes
    - `maxPrePostTransitTimeLimit` number, required — limit for maxPrePostTransitTime API param in seconds
    - `maxDirectTimeLimit` number, required — limit for maxDirectTime API param in seconds
    - `shapesDebugEnabled` boolean, required — true if experimental route shapes debug download API is enabled

## Other responses

- `400` — Bad Request

## Changes

- **2026-03-20** `581bccdd9ad6` — 1 info
  - added the required property `serverConfig/motisVersion` to the response with the `200` status
- **2026-03-06** `9161c3b65a67` — 1 info
  - added the required property `serverConfig/shapesDebugEnabled` to the response with the `200` status
- **2026-02-24** `30900fce77f1` — 3 info
  - the response property `serverConfig` became required for the status `200`
  - the response property `serverConfig/maxOneToAllTravelTimeLimit` became required for the status `200`
  - added the required property `serverConfig/maxOneToManySize` to the response with the `200` status
- **2026-02-21** `b7bf68a0d6f3` — 5 breaking
  - the response property `serverConfig` became optional for the status `200`
  - the response property `serverConfig/maxOneToAllTravelTimeLimit` became optional for the status `200`
  - removed the required property `serverConfig/maxOneToManySize` from the response with the `200` status
  - removed the required property `serverConfig/motisVersion` from the response with the `200` status
  - …1 more

[Change history](https://skmtc.dev/motis-project/apis/motis-api/changes/api/v1/map/initial/get.md)

---

[API](https://skmtc.dev/motis-project/apis/motis-api.md) · [All operations](https://skmtc.dev/motis-project/apis/motis-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/motis-project/motis-api/revisions/dbfe4b7f2bab/schema)
