Products
//- Bettermile Route API
Typical lifecycle
Tour
Sequence
Waypoint
Job
Custom Job
Custom Waypoint
Bettermile Route API
Bettermile Route API (1.0.0)
Part of Bettermile API responsible for tour management.
- Create a tour (
POST /v1/tours) for a given date, assignment (vehicle / route / driver) and depot. Bettermile looks up the jobs associated with that assignment from Data Gateway. - Create a sequence (
POST /v1/tours/{tourId}/sequences) to get an optimised order of waypoints for the respective tour. Sequence creation is synchronous — the returnedsequenceIdis usable immediately to fetch the full sequence viaGET /v1/tours/{tourId}/sequences/{sequenceId}orGET /v1/tours/{tourId}/sequences/latest. - (optional) Track and adjust the tour as it's driven: pin or unpin a waypoint's timeframe or stop time when it needs to be fixed against automatic recalculation, and report job status changes (
POST /v1/tours/{tourId}/jobs/statuses) as an auxiliary channel alongside the DataGateWay connector updates. - (optional) Custom jobs and waypoints (
Custom Job/Custom Waypointtags) let you add a job to a tour that wasn't provided via DataGateway, and group jobs into a waypoint manually.
All endpoints share a single x-api-key for authentication and a general per-customer rate limit (see the 429 response on each operation).
Download OpenAPI description
Overview
E-mailLicense
Languages
Servers
Dev API
https://dev.routes.bettermile.com