curl --request POST \
--url https://routing.solvice.io/cube \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"coordinates": [
[
123
]
],
"sources": [
123
],
"destinations": [
123
],
"vehicleType": "CAR",
"date": "2022-03-10T00:00:00.000Z",
"responseType": "<string>"
}
'{
"id": 123,
"status": "IN_PROGRESS",
"errorMessage": "<string>",
"responseType": "<string>",
"hash": 123,
"cubeResponseId": 123,
"updatedAt": "<string>",
"createdAt": "<string>"
}Request a time-dependent 3D distance matrix (cube) asynchronously. Returns a cube ID to poll status via /cube/ and fetch results via /cube//response. Use /cube//progress for progress on large matrices.
curl --request POST \
--url https://routing.solvice.io/cube \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"coordinates": [
[
123
]
],
"sources": [
123
],
"destinations": [
123
],
"vehicleType": "CAR",
"date": "2022-03-10T00:00:00.000Z",
"responseType": "<string>"
}
'{
"id": 123,
"status": "IN_PROGRESS",
"errorMessage": "<string>",
"responseType": "<string>",
"hash": 123,
"cubeResponseId": 123,
"updatedAt": "<string>",
"createdAt": "<string>"
}API key authentication. Include your API key in the Authorization header.
Cube Dto
The coordinates this request will use, coordinates as [{lon},{lat}] values, in decimal degrees.
2An 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. Currently only 'matrix' is supported (returns travel time matrices for each time slice).
OK
Cube id.
Cube status (IN_PROGRESS, SUCCEEDED, FAILED).
IN_PROGRESS, AGGREGATING, SUCCEEDED, FAILED, CREATING 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.