/cube
endpoint.
In the result you can find the table response id to fetch in /cube/{response_id}
.
For very large matrices (eg 2000x2000
and more), the /cube/{request_id}/progress
endpoint can provide more information.Authorizations
Api Key based authentication (apikey)
Body
Cube Dto
The coordinates this request will use, coordinates as [{lon},{lat}] values, in decimal degrees.
2
An array of index elements (0 <= integer < #coordinates) to use location with given index as source. Default is to use all.
An array of index elements (0 <= integer < #coordinates) to use location with given index as destination. Default is to use all.
The vehicle type for which the table is requested
CAR
, BIKE
, TRUCK
, ELECTRIC_CAR
, ELECTRIC_BIKE
The date for which you want to calculate the cube. This will take into account predictive travel time based on TomTom data. Format YYYY-MM-DD. Default is current date.
"2022-03-10T00:00:00.000Z"
Specifies the type of response to return. Can be 'coefficients' (return polynomial coefficients, default) or 'matrix' (return travel time matrices).
Response
OK
Cube id.
Cube status (IN_PROGRESS, SUCCEEDED, FAILED).
IN_PROGRESS
, AGGREGATING
, SUCCEEDED
, FAILED
Error message if the Cube failed.
Type of the Cube response, e.g., 'coefficients'.
Hash of the Cube request
Cube response id.
Last update time of the Cube.
Creation time of the Cube.