Creates a new sequence synchronously. The returned sequenceId is usable immediately to fetch the full sequence via GET .../sequences/{sequenceId} or GET .../sequences/latest.
Security
ApiKeyAuth
Mode which is used to create a sequence:
- FIXED_OPTIMIZATION instructs that ETAs of waypoints are to be re-calculated, while the order of the waypoints is mostly kept intact (waypoint may only be moved in certain special cases, like when the time frame changes for a waypoint)
- FULL_OPTIMIZATION instructs the backend to create an entirely new sequence, without attempts to maintain the previous order of waypoints
- RETURN_TO_PREVIOUS_WAYPOINT_ORDER can be used to return to a previously used order of waypoints, in a situation when results of running FULL_OPTIMIZATION need to be "undone"
- USE_PROVIDED instructs the backend to keep the order of the provided waypoint ids (time frames will be ignored)
Enum:"FIXED_OPTIMIZATION""FULL_OPTIMIZATION""RETURN_TO_PREVIOUS_WAYPOINT_ORDER""USE_PROVIDED"
Local time of day, without a timezone offset.
Example:"08:00:00"
List of waypoints IDs representing expected order of waypoints in the generated sequence. When provided, sequence creation mode must be 'USE_PROVIDED'.
- Dev APIhttps://dev.routes.bettermile.com/v1/tours/{tourId}/sequences
curl -i -X POST \
https://dev.routes.bettermile.com/v1/tours/3fa85f64-5717-4562-b3fc-2c963f66afa6/sequences \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY_HERE' \
-d '{
"mode": "FIXED_OPTIMIZATION",
"coords": {
"lat": 52.52,
"lon": 13.405
},
"startTime": "08:00:00"
}'Response
{ "data": { "sequenceId": 10234 } }