v1
latestOpenAPI 3.1.22026-08-063221.7 KBGet distance
Find the distance and general drive time between two points.
Query parameters
Required. The License Key issued by Melissa.
Options - List options in the following format, with multiple options delimited with a ,. For example: optionName:parameter,optionName:parameter. These options are case-sensitive and camel case.
-
arriveAt:< yyyy-mm-ddThh:mm:ss.mmmZ > - Specify the arrival time ISO 8601 UTC.
-
avoid:< borderCrossings | ferries | tollRoads | tunnels | unpavedRoads > - Specify the types of transport obstacles to avoid.
-
departAt:< yyyy-mm-ddThh:mm:ss.mmmZ | now > - Specify the departure date and time in ISO 8601 UTC. Default is now - departs immediately.
-
routeType:< eco | fastest | shortest | thrilling > - Specify the type of route.
- eco - Balances travel time and fuel efficiency.
- fastest - Optimizes for fastest travel time.
- shortest - Optimizes for shortest travel distance.
- thrilling - Optimized for challenging, hilly, or winding routes.
-
traffic:< false | true > - Considers current traffic conditions. Default is true.
-
travelMode:< bicycle | car | pedestrian > - Specify the type of vehicle used for the travel mode. Default is car.
-
vehicleCommercial:< false | true > - Indicates if the vehicle is a commercial vehicle. Default is false.
-
vehicleHeight:< [float] | 0 > - Specifies the vehicle height in meters. There are no height restrictions. Default is 0.
-
vehicleLength:< [float] | 0 > - Specifies the vehicle length in meters. Default is 0.
-
vehicleMaxSpeed:< [integer] | 0 > - Specifies the maximum vehicle speed in km/hr. Default is 0.
-
vehicleWeight:< [integer] | 0 > - Specifies the vehicle weight in kilograms. Minimum value is 1.
Transmission Reference - Serves as a unique request identifier. It is returned as sent.
Units - This specifies the returned distance unit scale. Use mi for miles and km for kilometers.
Required. Ending Latitude - The street route ending latitude.
Required. Ending Longitude - The street route ending longitude.
Required. Starting Latitude - The street route starting latitude.
Required. Starting Longitude - The street route starting longitude.
Headers
Format of the response.
Format of the request.
Response
Default response from a GET request