Route from the CLI
Use routing commands for routes, matrices, reachable areas, map matching, and custom requests.
Documentation navigation
Start with E2
SDK guides
CLI guides
MCP guides
Applications
Framework quickstarts
Route operations
| Command | Example |
|---|---|
route run | e2 route run --locations "40.74,-73.99;40.71,-74.01" --mode walking |
route matrix | e2 route matrix --sources "40.74,-73.99" --targets "40.71,-74.01" |
route isochrone | e2 route isochrone --locations "40.74,-73.99" --contours 5,10,15 |
route map-match | e2 route map-match --shape "40.74,-73.99;40.71,-74.01" |
route to-feature | e2 route to-feature restaurant --from "40.74,-73.99" --area Manhattan |
route request | e2 route request /locate --body <json> |
Bodies and locations
terminal
e2 route run --locations "40.74,-73.99;40.71,-74.01"
--mode driving --body '{"date_time":{"type":1,"value":"2026-08-18T09:00"}}'Locations use lat,lng;lat,lng. Matrix uses separate --sources and --targets. Isochrone contours are comma-separated minutes.
