---
title: "Calculates the distance for a given route"
method: GET
path: "/route/calculate"
tags: ["Location service"]
---

# Calculates the distance for a given route

`GET /route/calculate`

__Activity name :__ <a href="https://developer.loket.nl/Activities/GetCalculateRouteByBearerToken" target="_blank">GetCalculateRouteByBearerToken</a>

Calculates the dinstance (in KM) between the given GEO coördinates. Its possible to provide multiple stops for the calculation.

## Query parameters

- `query` string, required
- `routeType` 'fastest' | 'shortest', required

## Headers

- `Authorization` string, required
- `Accept` string, required

## Response `200`

OK

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.net/loket/apis/loket-api.md) · [All operations](https://skmtc.net/loket/apis/loket-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/loket/loket-api/revisions/32d1693f8db8/schema)
