Skip to main content

External Distance Matrices

Upload pre-computed distance matrices to maps.solvice.io/table/upload-table and reference them by ID in your VRP requests for faster processing and custom traffic patterns.

Basic Configuration

Configure different distance matrices for different times of day:

Time Slice Keys

Each key under a vehicle profile is the start hour of a time slice. Only these keys match a slice:
A key that is not one of 6, 9, 12, 14, 16 or 20 (for example 8) matches no slice, so its matrix ID is never used.
With a routing engine that does not vary travel time by departure time (the default OSM engine, and TOMTOM_REAL_TIME), only the 20 slice is read. Provide the matrix under "20" in that case.

Matrix Upload

Upload your distance matrix to get an ID:
Then reference the returned matrix ID under the key of the time slice that the departure time falls in (08:00 is in the slice starting at 6):

Multi-Vehicle Configuration

Different vehicle types can use different routing matrices:

API Reference

object
required
Map of vehicle profiles to time slice configurations. Keys are vehicle categories (CAR, TRUCK, BIKE). Each profile maps a time slice start hour (6, 9, 12, 14, 16 or 20) to a matrix ID.
string
Optional URL for custom matrix service endpoint