POST
/
table
/
upload
Upload Table
curl --request POST \
  --url https://routing.solvice.io/table/upload \
  --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
    ]
  ],
  "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
    ]
  ]
}'
{
  "id": 123,
  "status": "IN_PROGRESS",
  "errorMessage": "<string>",
  "hash": 123,
  "nrOfSources": 123,
  "nrOfDestinations": 123,
  "tableResponseId": 123,
  "updatedAt": "<string>",
  "createdAt": "<string>"
}
Upload a custom table. Then fetch it with the returned id.

Authorizations

Authorization
string
header
required

Api Key based authentication (apikey)

Body

application/json

Upload pre-computed distance/duration matrix

Response

Table uploaded successfully

The response is of type object.