curl --request GET \
--url https://routing.solvice.io/cube/{id}/response \
--header 'Authorization: <api-key>'{
"tableId": 123,
"durations": [
[
123
]
],
"distances": [
[
123
]
],
"sources": [
{
"hint": "<string>",
"distance": 123,
"name": "<string>",
"location": [
123
]
}
],
"destinations": [
{
"hint": "<string>",
"distance": 123,
"name": "<string>",
"location": [
123
]
}
],
"durationSlices": [
[
[
123
]
]
],
"coefficients": [
[
[
123
]
]
],
"slices": [
{
"sliceNumber": 123,
"startHour": 123,
"endHour": 123
}
]
}Fetch the computed cube result containing polynomial coefficients for time-dependent travel times.
curl --request GET \
--url https://routing.solvice.io/cube/{id}/response \
--header 'Authorization: <api-key>'{
"tableId": 123,
"durations": [
[
123
]
],
"distances": [
[
123
]
],
"sources": [
{
"hint": "<string>",
"distance": 123,
"name": "<string>",
"location": [
123
]
}
],
"destinations": [
{
"hint": "<string>",
"distance": 123,
"name": "<string>",
"location": [
123
]
}
],
"durationSlices": [
[
[
123
]
]
],
"coefficients": [
[
[
123
]
]
],
"slices": [
{
"sliceNumber": 123,
"startHour": 123,
"endHour": 123
}
]
}API key authentication. Include your API key in the Authorization header.
Cube request id.
Get cube response
Cube Response
Table response id. Not to be confused with table request id.
Time distance matrix. In order of sources to destinations indexes in request.
Distance matrix. In order of sources to destinations indexes in request.
Actual sources snapped to map.
Show child attributes
Actual destinations snapped to map.
Show child attributes
Time distance matrix. In order of sources to destinations indexes in request.
Travel Time cube. In order of sources to destinations indexes in request. Inner array is list of 6 coefficients.
Time slice information indicating which time periods each slice represents.
Show child attributes