Quickstart#
Introduction#
Welcome to Melissa’s Street Route. Street Route is a web service for returning the distance (in miles or kilometers) and driving travel time between two sets of Latitude Longitude pairs.
You can use Street Route to:
Find the distance and general drive time between two points
Create a ‘Find the Nearest Location’ tool. Using a database of ‘known / owner destinations’, Street Route can be used to compare a starting point location to the database to return all the route distances and drive times to the possible destinations, which can be queried by the user to present the shortest distance or travel time to the end user.
Determine geolocations which our data sources tell us cannot be reached by vehicle travel. This differentiates Street Route from other distance solutions which return ‘As the crow flies’ distances. Examples are geo points to islands, or rural off road residences.
System Requirements#
SSL/TLS 1.2+
Getting Started - What Can I Do?#
Find the Distance and General Drive Time Between Two Points#
Endpoint#
v1/WEB/StreetRoute/getDistance
Click here to go to the full endpoint documentation.
Try it Now#
curl -X GET "https://streetroute.melissadata.net/v1/WEB/StreetRoute/getDistance?\
&id={{customerId}}\
&units=\
&endLatitude=33.649870\
&endLongitude=-117.582960\
&format=JSON\
&startLatitude=33.637520\
&startLongitude=-117.606920" \
-H "Content-Type:application/json"\
-H "Accept:application/json"
curl -X POST "http://StreetRoute.melissadata.net/V4/WEB/StreetRoute/doStreetRoute" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"CustomerID":{{customerId}},
"Records":[{
"EndLatitude":"",
"EndLongitude":"",
"RecordID":"",
"StartLatitude":"",
"StartLongitude":""
},
{
"EndLatitude":"",
"EndLongitude":"",
"RecordID":"",
"StartLatitude":"",
"StartLongitude":""
}],
"TransmissionReference":"",
"Units":""
}'
Sample Code#
Language |
Repository |
---|---|
C# .NET |
|
Python3 |
|
Postman Collection |