POST
/
table
/
sync
curl --request POST \
  --url https://routing.solvice.io/table/sync \
  --header 'Content-Type: application/json' \
  --data '{
  "coordinates": [
    [
      4.9,
      50.2
    ],
    [
      4.8,
      50.4
    ],
    [
      5,
      50.9
    ],
    [
      5.05,
      50.9
    ]
  ],
  "sources": [
    0,
    1,
    2,
    3
  ],
  "destinations": [
    0,
    1,
    2,
    3
  ]
}'
{
  "destinations": [
    {
      "hint": "eX5AgduYjYYsAAAAlAAAAHIAAAAAAAAAxBf6QX7HzELIz51CAAAAACwAAACUAAAAcgAAAAAAAAAVtwAAlMNKAIj__QKgxEoAwP39AgEAXwRPrDVe",
      "distance": 54.20808645369059,
      "name": "Avenue de la Restauration",
      "location": [
        4.899732,
        50.200456
      ]
    },
    {
      "hint": "o_v2gPMxk4KXAAAAQwAAAJsAAADWAwAA4YOXQ0HtBEOh05pDGnn1RJcAAABDAAAAmwAAANYDAAAVtwAAEyhJAG0BAQMAPkkAAAsBAwMAXxRPrDVe",
      "distance": 483.4921257061384,
      "name": "Route des Trois Communes",
      "location": [
        4.794387,
        50.397549
      ]
    },
    {
      "hint": "WvwMgrAseoRNAAAAAAAAALwAAAAAAAAAvYZVQgAAAAAK0AFDAAAAAE0AAAAAAAAAvAAAAAAAAAAVtwAAI1ZMAPmtCANAS0wAIKwIAwYAXw9PrDVe",
      "distance": 202.89814553989248,
      "name": "Wittebos",
      "location": [
        5.002787,
        50.900473
      ]
    },
    {
      "hint": "GtVBggTgEIkDAAAADwAAAMUAAAAAAAAAbWKjQHMstUHaEZlDAAAAAAMAAAAPAAAAxQAAAAAAAAAVtwAA-Q5NAN2rCAOQDk0AIKwIAwsAHw5PrDVe",
      "distance": 10.496399718824598,
      "name": "Tiensestraat",
      "location": [
        5.050105,
        50.899933
      ]
    }
  ],
  "durations": [
    [
      0,
      1976.1,
      5772.3,
      5642.6
    ],
    [
      2010.2,
      0,
      4783.9,
      4654.2
    ],
    [
      5817.2,
      4797.4,
      0,
      508.6
    ],
    [
      5705.3,
      4685.5,
      530.2,
      0
    ]
  ],
  "sources": [
    {
      "hint": "eX5AgduYjYYsAAAAlAAAAHIAAAAAAAAAxBf6QX7HzELIz51CAAAAACwAAACUAAAAcgAAAAAAAAAVtwAAlMNKAIj__QKgxEoAwP39AgEAXwRPrDVe",
      "distance": 54.20808645369059,
      "name": "Avenue de la Restauration",
      "location": [
        4.899732,
        50.200456
      ]
    },
    {
      "hint": "o_v2gPMxk4KXAAAAQwAAAJsAAADWAwAA4YOXQ0HtBEOh05pDGnn1RJcAAABDAAAAmwAAANYDAAAVtwAAEyhJAG0BAQMAPkkAAAsBAwMAXxRPrDVe",
      "distance": 483.4921257061384,
      "name": "Route des Trois Communes",
      "location": [
        4.794387,
        50.397549
      ]
    },
    {
      "hint": "WvwMgrAseoRNAAAAAAAAALwAAAAAAAAAvYZVQgAAAAAK0AFDAAAAAE0AAAAAAAAAvAAAAAAAAAAVtwAAI1ZMAPmtCANAS0wAIKwIAwYAXw9PrDVe",
      "distance": 202.89814553989248,
      "name": "Wittebos",
      "location": [
        5.002787,
        50.900473
      ]
    },
    {
      "hint": "GtVBggTgEIkDAAAADwAAAMUAAAAAAAAAbWKjQHMstUHaEZlDAAAAAAMAAAAPAAAAxQAAAAAAAAAVtwAA-Q5NAN2rCAOQDk0AIKwIAwsAHw5PrDVe",
      "distance": 10.496399718824598,
      "name": "Tiensestraat",
      "location": [
        5.050105,
        50.899933
      ]
    }
  ]
}

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.

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.

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.

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>

The vehicle type for which the table is requested

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

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

Available options:
OSM,
TOMTOM
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.

Example:

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

Response

200 - application/json
Get table response directly.

Table Response

tableId
integer

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

durations
array | null

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

distances
array | null

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

sources
object[] | null

Actual sources snapped to map.

destinations
object[] | null

Actual destinations snapped to map.