v3

latestOpenAPI 3.1.02026-07-311,0939714.5 MB
Location service

Calculates the distance for a given route

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.

get/route/calculate

Query parameters

querystring required

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'fastest' | 'shortest' required

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

Headers

Authorizationstring required
Example:Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Acceptstring required
Example:application/json;version=2018-01-01

The accept header is used to influence what type of output is returned and in most cases the version of the output

Response

OK