Use Radar's routing APIs to calculate travel distances between origins and destinations.
First, sign up for Radar and get an API key.
From there, use the APIs to build location features in your app or website, such as store locators, address autocomplete, or delivery tracking.
Use the distance API to calculate the travel distance and duration between an origin and a destination. You can specify one or more travel modes, including
Use cases for this endpoint include calculating the distance and duration of a trip from point A to point B, calculating the ETA for a pickup or delivery, or calculating the walking and driving distance to a nearby store.
See the distance API reference here.
Use the matrix API to calculate travel distances and durations between multiple origins and destinations.
Use cases for this endpoint include calculating the walking or driving distance to multiple nearby stores (e.g., in a store locator) or optimizing routes.
See the matrix API reference here.
Use the route matching API to snap points collected along a route to roads that were most likely traveled on. Returns the matched path and road information.
Use cases for this endpoint include producing clean paths that can be displayed on a map, used for accurate mileage tracking and other analysis, as well as retrieving road context such as speed limits and road names along a traveled path.
See the route matching API reference here.
Use the directions API to calculate the most efficient route between two or more locations to visit in order.
Use cases for this endpoint include calculating and displaying paths between locations on a map.
See the directions API reference here.
Use the route optimization API to calculate the optimal ordering and route to visit a list of locations.
Use cases for this endpoint include determining the best sequence for several pickups or deliveries, or calculating the optimal route to visit multiple stops.
See the route optimization API reference here.
Radar's routing APIs incorporate both open and commercial datasets for maximum coverage at an affordable price relative to alternatives.
The following table describes data coverage for routing APIs, by country, for consumer use cases (e.g., store locators) and logistics use cases (e.g., ride sharing, delivery).
|⬤||Great data quality and availability|
|◐||Good data quality and availability|
|◯||Approximate data quality and availability|
|Distance and matrix|
|🇺🇸 US (consumer)||⬤|
|🇺🇸 US (logistics)||⬤|
|🇨🇦 CA (consumer)||⬤|
|🇨🇦 CA (logistics)||⬤|
|🇬🇧 UK (consumer)||⬤|
|🇬🇧 UK (logistics)||⬤|
|🌎 Other (consumer)||◐|
|🌎 Other (logistics)||◐|
The Radar team is constantly working to improve data coverage for our geocoding, search, and routing APIs. Bad response? Unexpected error? Report it here, and our team will fix it ASAP.
Have questions? We're here to help! Email us at firstname.lastname@example.org.