The APIs are designed to be combined. Here are the most common patterns.
Geocoding → Route Optimization → Routing
- Geocoding: convert customer addresses to coordinates. Note: the Geocoding response uses
point.lngwhile the Optimization request useslon— map the field name accordingly. - Route Optimization (
POST /vrp): pass the coordinates as service addresses along with your vehicles. Setconfiguration.routing.calc_pointstotrueto get route geometries in the response. The solver assigns stops to vehicles, sequences them, and returns routes with arrival times. - Routing (
POST /route): optionally, call this per driver route to get turn-by-turn instructions. Pass the stop coordinates from the optimization solution aspoints, setinstructionstotrue.
If you only need geometries (no turn-by-turn instructions), step 3 is unnecessary — calc_points in step 2 already provides them.
Geocoding → Matrix
- Geocoding: convert addresses to coordinates.
- Matrix (
POST /matrix): compute travel times and distances between all pairs (or specific origin/destination sets). Useful for displaying ETAs to customers or pre-filtering stops before optimization.
Routing only
Call Routing (POST /route) with two or more points. No optimization or geocoding needed if you already have coordinates.
To integrate turn-by-turn navigation for an app (iOS or Android) have a look into the Maplibre Navigation SDK (Kotlin Multiplatform). Contact us if you need more information.