Distance

FREEMIUM
By Distance.to
Updated 2 months ago
Mapping
8.5/10
Popularity Score
987ms
Latency
100%
Success Rate

Distance API Documentation

Calculate distances and travel time between cities, addresses, postcodes or airports. Geocoding, car or foot directions, airline and many more data included.

View API Details
GETGet distance
GETGet distance

Get a distance between locations

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
routeSTRING
REQUIREDA route is described of an array of point objects. Every point object exists of a "t" property, which describes the name of the point. (Can be address, city, iata or lat,lng ) and an optional "c" propertie which describes the country in ISO 3166-1 alpha-2 or alpha-3 (DE or DEU, ES, US,...) Example: [{"t":"TXL"},{"t":"Hamburg"}]
Optional Parameters
carBOOLEAN
OPTIONALAdd car route distance and duration
footBOOLEAN
OPTIONALAdd foot route distance and duration
Code Snippet
Install SDK
Response ExampleSchema

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication