POST
/
table
curl --request POST \
  --url https://routing.solvice.io/table \
  --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
  ]
}'
{
  "id": 123,
  "tableResponseId": 123,
  "status": "IN_PROGRESS",
  "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.

Body

application/json

Table Dto

Response

200 - application/json
OK

The response is of type object.