---
title: "CalculateRouteByBearerToken (Loket.nl REST)"
description: "itgen_loketnl_calculateroutebybearertoken_plural"
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/datamodels/loketnl/LoketNlRest.LocationService.CalculateRouteByBearerToken
original: https://documentation.invantive.eu/en/datamodels/loketnl/LoketNlRest.LocationService.CalculateRouteByBearerToken
updated: 2024-06-10T18:51:26Z
license: https://documentation.invantive.eu/en/
---

# CalculateRouteByBearerToken: Loket.nl REST itgen_loketnl_calculateroutebybearertoken_plural

`read only` `REST`

- Catalog: `LoketNlRest`
- Schema: `LocationService`
- Label: itgen_loketnl_calculateroutebybearertoken_plural

Calculates the distance for a given route
__Activity name :__ GetCalculateRouteByBearerToken

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


Can only retrieve data.

## API Source

- Endpoint: `/route/calculate`
- Operation: `get /route/calculate`

## Parameters

| Name | Data Type | Required | Default | Documentation |
|---|---|:---:|---|---|
| `query` | `` | [x] |  | The route as defined by the geo-coördinates.  Use the following formatting -> latitude,longitude;latitude,longitude;latitude,longitude etc  Atleast 2 sets of geo-coördinates have to be provided in order for a route to be calculated  Please note: latitude must be a value between -90 and 90 where as longitude must be a value between -180 and 180 |
| `routeType` | `` | [x] |  | The method of how the route is calculated. This can influence the distance to travel.  Integers can be used instead of the strings 1 --> fastest / snelste 2 --> shortest / kortste (Waarden: fastest, shortest) |

## Table Columns

The columns of the table `CalculateRouteByBearerToken` are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.

| Name | Data Type | Label | Required | Marks | Documentation |
|---|---|---|:---:|---|---|
| `lengthInKilometers` | `double` | itgen_loketnl_lengthinkilometers | [ ] |  | Total length of the route |
| `routeType` | `varchar2` | itgen_loketnl_routetype | [ ] |  | The method used to calculate the route |



## Release Notes

What changed per release in the tables, columns, attributes and capabilities of the driver:

- [Loket.nl REST](/en/release-notes/drivers?driver=loket-nl-rest)

