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#
  • GET JSON
  • POST JSON
curl -X GET "https://streetroute.melissadata.net/v1/WEB/StreetRoute/getDistance?\
&id={{customerId}}\
&units=\
&startLatitude=33.637520\
&startLongitude=-117.606920\
&endLatitude=33.649870\
&endLongitude=-117.582960\
&format=JSON" \
-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}},
      "TransmissionReference":"",
      "Units":"",
      "Records":
         [
            {
               "RecordID":"",
               "StartLatitude":"",
               "StartLongitude":"",
               "EndLatitude":"",
               "EndLongitude":""
            },
            {
               "RecordID":"",
               "StartLatitude":"",
               "StartLongitude":"",
               "EndLatitude":"",
               "EndLongitude":""
            }
         ]
   }'

Sample Code#

Language

Repository

C# .NET

melissa_favicon MelissaData/StreetRoute-Dotnet

Python3

melissa_favicon MelissaData/GlobalStreetRoute-Python3

Postman Collection

melissa_favicon MelissaData/StreetRoute-Postman