Overview
The Routing API supports:Multiple Modes
Foot, bike, car, truck, and motorbike routing
Route Matrices
Calculate routes between multiple origins and destinations
Distance Units
Imperial (feet/miles) or metric (meters/kilometers)
Route Geometry
Get detailed route paths and turn-by-turn directions
Calculate Distance
Distance from Current Location
Calculate travel distance and duration from the device’s current location to a destination:Distance Between Two Locations
Calculate travel distance between any two coordinates:Travel Modes
Radar supports multiple transportation modes:1
Foot
Walking routes optimized for pedestrians.
2
Bike
Bicycle routes using bike lanes and paths where available.
3
Car
Driving routes for passenger vehicles.
4
Truck
Routes optimized for trucks, considering weight and height restrictions.
5
Motorbike
Motorcycle routes that may differ from car routes.
Distance Units
Choose between imperial and metric units:Route Geometry
Access detailed route geometry for mapping:Route Matrix
Calculate routes between multiple origins and destinations in a single request (up to 25 routes).Basic Matrix Calculation
Matrix Use Cases
Delivery Route Optimization
Delivery Route Optimization
Find the optimal driver assignment for multiple deliveries:
Store Locator with Drive Time
Store Locator with Drive Time
Show stores sorted by actual drive time, not straight-line distance:
Route matrices support up to 25 total routes (e.g., 5 origins × 5 destinations).
Response Objects
RadarRoutes
TheRadarRoutes object contains route information for each requested mode:
RadarRoute
Each route contains distance, duration, and geometry:RadarRouteDistance
Distance with both numeric value and formatted text:RadarRouteDuration
Duration with both numeric value and formatted text:Use Cases
Delivery ETA
Calculate accurate delivery time estimates based on real routes.
Store Locator
Show users the nearest stores by actual drive time.
Fleet Management
Optimize driver assignments and route planning.
Geofence Radius
Determine if a location is within a travel time threshold.
Performance Tips
1
Request Only Needed Modes
Only request the transportation modes you’ll actually use:
2
Use Matrices Efficiently
Batch multiple route calculations into a single matrix request:
3
Cache Route Results
Cache route calculations to avoid redundant API calls:
Error Handling
Learn More
Routing API
Explore the complete Routing API reference
Trip Tracking
Track trips with live ETA updates
Search
Search for places and geofences
Context
Get comprehensive location context