Part of Bettermile Route API responsible for tour management
Products
//- Get potential recalculation gain for tour
Request creation of a new tour
Get tours for a given date, optionally narrowed down by a given assignment value
Get tour by ID
Set tour destination
Get potential recalculati...
Tour Commander API (1.0.0)
Download OpenAPI description
Overview
E-mail
License
Languages
Servers
Dev API
https://dev.routes.bettermile.com/
Bodyapplication/jsonrequired
Vehicle / route / driver identifier. This value is used to look up jobs in Data Gateway
- Dev API
https://dev.routes.bettermile.com/v1/tours
- curl
- Java
- JavaScript
- Go
- Python
curl -i -X POST \
https://dev.routes.bettermile.com/v1/tours \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-d '{
"date": "2019-08-24",
"assignment": "string",
"depot": "string"
}'Response
application/json
{ "data": { "tourId": "eb2f92e7-0760-4174-a0f6-c120b0ef2ec8" } }
- Dev API
https://dev.routes.bettermile.com/v1/tours
- curl
- Java
- JavaScript
- Go
- Python
curl -i -X GET \
'https://dev.routes.bettermile.com/v1/tours?date=2019-08-24' \
-H 'x-api-key: YOUR_API_KEY_HERE'Response
application/json
{ "data": [ { … } ] }
- Dev API
https://dev.routes.bettermile.com/v1/tours/{tourId}
- curl
- Java
- JavaScript
- Go
- Python
curl -i -X GET \
'https://dev.routes.bettermile.com/v1/tours/{tourId}' \
-H 'x-api-key: YOUR_API_KEY_HERE'Response
application/json
{ "data": { "tourId": "eb2f92e7-0760-4174-a0f6-c120b0ef2ec8", "date": "2019-08-24", "assignment": "string", "depot": "string", "created": "2019-08-24T14:15:22Z", "jobs": [ … ], "waypoints": [ … ], "rttCategory": "GOOD", "destination": { … }, "unassignedJobIdentifiers": [ … ] } }
- Dev API
https://dev.routes.bettermile.com/v1/tours/{tourId}/destination
- curl
- Java
- JavaScript
- Go
- Python
curl -i -X PUT \
'https://dev.routes.bettermile.com/v1/tours/{tourId}/destination' \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-d '{
"lat": -90,
"lon": -180
}'Response
application/json
{ "data": {} }
- Dev API
https://dev.routes.bettermile.com/v1/tours/{tourId}/potential-recalc-gain
- curl
- Java
- JavaScript
- Go
- Python
curl -i -X GET \
'https://dev.routes.bettermile.com/v1/tours/{tourId}/potential-recalc-gain?lat=0.1&lon=0.1' \
-H 'x-api-key: YOUR_API_KEY_HERE'Response
application/json
{ "data": { "potentialGainInSeconds": 0 } }