POST
/
table
Create
curl --request POST \
  --url https://routing.solvice.io/table \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "coordinates": [
    [
      4.9,
      50.2
    ],
    [
      4.8,
      50.4
    ],
    [
      5,
      50.9
    ],
    [
      5.05,
      50.9
    ]
  ]
}'
{
  "id": 123,
  "status": "IN_PROGRESS",
  "errorMessage": "<string>",
  "hash": 123,
  "nrOfSources": 123,
  "nrOfDestinations": 123,
  "tableResponseId": 123,
  "updatedAt": "<string>",
  "createdAt": "<string>"
}
Request a distance matrix with the asynchronous /table endpoint. In the result you can find the table response id to fetch in /table/{response_id}. For very large matrices (eg 2000x2000 and more), the /table/{request_id}/progress endpoint can provide more information.

Authorizations

Authorization
string
header
required

Api Key based authentication (apikey)

Body

application/json

Table Dto

coordinates
number[][]
required

The coordinates this request will use, coordinates as [{lon},{lat}] values, in decimal degrees.

Minimum length: 2
sources
integer[] | null

An array of index elements (0 <= integer < #coordinates) to use location with given index as source. Default is to use all.

destinations
integer[] | null

An array of index elements (0 <= integer < #coordinates) to use location with given index as destination. Default is to use all.

annotations
string[] | null

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).

vehicleType
enum<string> | null

The vehicle type for which the table is requested

Available options:
CAR,
BIKE,
TRUCK,
ELECTRIC_CAR,
ELECTRIC_BIKE
engine
enum<string> | null

Routing data engine being used: OpenStreetMap (OSM) or TomTom.

Available options:
OSM,
TOMTOM,
GOOGLE,
ANYMAP,
CUSTOM
departureTime
string<date-time> | null

The departure time (ISO8601) for which you want to calculate the route. This will take into account predictive travel time based on TomTom data.

Examples:

"2022-03-10T12:15:50.000Z"

interpolate
boolean | null

Enable linear interpolation between time slices for more accurate results based on departure time

exclude
enum<string>[] | null

Exclude certain road types from routing

Response

Table created successfully

id
integer

Table id.

status
enum<string> | null

Table status (IN_PROGRESS, SUCCEEDED, FAILED).

Available options:
IN_PROGRESS,
AGGREGATING,
SUCCEEDED,
FAILED
errorMessage
string | null

Error message if the Cube failed.

hash
integer | null

Hash of the Cube request

nrOfSources
integer | null

Number of sources in the table

nrOfDestinations
integer | null

Number of destinations in the table

tableResponseId
integer

Table response id.

updatedAt
string | null

Last update time of the table.

createdAt
string | null

Creation time of the table.