Skip to main content
GET
/
cube
/
{id}
/
response
Get cube response
curl --request GET \
  --url https://routing.solvice.io/cube/{id}/response \
  --header 'Authorization: <api-key>'
{
  "tableId": 123,
  "durations": [
    [
      123
    ]
  ],
  "distances": [
    [
      123
    ]
  ],
  "sources": [
    {
      "hint": "<string>",
      "distance": 123,
      "name": "<string>",
      "location": [
        123
      ]
    }
  ],
  "destinations": [
    {
      "hint": "<string>",
      "distance": 123,
      "name": "<string>",
      "location": [
        123
      ]
    }
  ],
  "durationSlices": [
    [
      [
        123
      ]
    ]
  ],
  "coefficients": [
    [
      [
        123
      ]
    ]
  ],
  "slices": [
    {
      "sliceNumber": 123,
      "startHour": 123,
      "endHour": 123
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://maps.solvice.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key authentication. Include your API key in the Authorization header.

Path Parameters

id
integer<int64>
required

Cube request id.

Response

200 - application/json

Get cube response

Cube Response

tableId
integer<int64>

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

durations
number<double>[][] | null

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

distances
number<double>[][] | 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.

durationSlices
number<double>[][][] | null

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

coefficients
number<double>[][][] | null

Travel Time cube. In order of sources to destinations indexes in request. Inner array is list of 6 coefficients.

slices
object[] | null

Time slice information indicating which time periods each slice represents.