POST
/
table
/
sync

Request a distance matrix with the synchronous /table/sync endpoint. This will be limited to a 50x50 matrix.

Body

application/json

Table Dto

coordinates
array | null
required

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

destinations
integer[] | null
required

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

sources
integer[] | null
required

An array of index elements (0 <= integer < #coordinates) to use location with given index as source. 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).

departureTime
string

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

engine
enum<string>

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

Available options:
OSM,
TOMTOM
vehicleType
enum<string>

The vehicle type for which the table is requested

Available options:
CAR,
BIKE,
TRUCK,
ELECTRIC_CAR,
ELECTRIC_BIKE

Response

200 - application/json

Table Response

destinations
object[] | null

Actual destinations snapped to map.

distances
array | null

Distance matrix. In order of sources to destinations indexes in request.

durations
array | null

Time distance matrix. In order of sources to destinations indexes in request.

sources
object[] | null

Actual sources snapped to map.

tableId
integer

Table response id. Not to be confused with table request id.