curl --request POST \
--url https://routing.solvice.io/table \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"coordinates": [
[
123
]
],
"sources": [
123
],
"destinations": [
123
],
"annotations": [
"<string>"
],
"vehicleType": "CAR",
"engine": "OSM",
"departureTime": "2024-03-15T08:30:00.000Z",
"interpolate": true,
"exclude": [
"TOLL"
]
}
'{
"id": 123,
"status": "IN_PROGRESS",
"errorMessage": "<string>",
"hash": 123,
"nrOfSources": 123,
"nrOfDestinations": 123,
"tableResponseId": 123,
"updatedAt": "<string>",
"createdAt": "<string>"
}Request a distance matrix asynchronously. Returns a table ID to poll status via /table/ and fetch results via /table//response. Use /table//progress for progress on large matrices (e.g. 2000x2000+).
curl --request POST \
--url https://routing.solvice.io/table \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"coordinates": [
[
123
]
],
"sources": [
123
],
"destinations": [
123
],
"annotations": [
"<string>"
],
"vehicleType": "CAR",
"engine": "OSM",
"departureTime": "2024-03-15T08:30:00.000Z",
"interpolate": true,
"exclude": [
"TOLL"
]
}
'{
"id": 123,
"status": "IN_PROGRESS",
"errorMessage": "<string>",
"hash": 123,
"nrOfSources": 123,
"nrOfDestinations": 123,
"tableResponseId": 123,
"updatedAt": "<string>",
"createdAt": "<string>"
}API key authentication. Include your API key in the Authorization header.
Table 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.
Return the requested table or tables in response. Can be ['duration'] (return the duration matrix, default) or ['duration', distance'] (return both the duration matrix and the distance matrix).
The vehicle type for which the table is requested
CAR, BIKE, TRUCK, ELECTRIC_CAR, ELECTRIC_BIKE Routing data engine being used: OpenStreetMap (OSM) or TomTom.
OSM, TOMTOM, GOOGLE, ANYMAP, CUSTOM The departure time (ISO8601) for which you want to calculate the route. This will take into account predictive travel time based on TomTom data.
"2024-03-15T08:30:00.000Z"
Enable linear interpolation between time slices for more accurate results based on departure time
Exclude certain road types from routing
TOLL, MOTORWAY, FERRY, TUNNEL, BRIDGE Table created successfully
Table id.
Table status (IN_PROGRESS, SUCCEEDED, FAILED).
IN_PROGRESS, AGGREGATING, SUCCEEDED, FAILED, CREATING Error message if the Cube failed.
Hash of the Cube request
Number of sources in the table
Number of destinations in the table
Table response id.
Last update time of the table.
Creation time of the table.