Introduction
The Solvice Maps Distance Matrix service is specifically made for products that use route optimization to power scheduling operations. Route optimization (TSP, PDP, VRP, …) requires the usage of a distance matrix detailing the travel time and distance from every location to every other location in the solve request.
Traffic unaware (OSM)
Send coordinates
POST
/table
/table/sync
endpoint.Poll table until ready
GET
/table/4309631/status
Get response (gzipped)
Make sure you test this endpoint with a browser or that supports gzip compression.
GET
/table/4309631/response
/table/{id}/response/url
which redirects to Google Cloud Storage over our API.Traffic aware (TomTom)
Solvice Maps has integrated TomTom road segment information in order to produce Traffic-aware routing. It is based on slices of adjusted travel time information.
To get Traffic aware distance matrices, you need to set the departureTime
as well as setting the routing "engine": TOMTOM
.
At Solvice, we use the following slices:
Period | From | To |
---|---|---|
NIGHT | 20:30 | 06:30 |
MORNING_RUSH | 06:30 | 09:30 |
MORNING | 09:30 | 12:00 |
MIDDAY | 12:00 | 14:30 |
AFTERNOON | 14:30 | 16:30 |
EVENING_RUSH | 16:30 | 19:30 |
In between slices, you can get interpolated values by setting the property "interpolate": true
.
Like so:
POST
/table