Street Route:REST JSON: Difference between revisions

From Melissa Data Wiki
Jump to navigation Jump to search
Created page with "{{StreetRouteNav |ExampleCollapse= }} {{CustomTOC}} ==REST Request== <pre> https://streetroute.melissadata.net/WEB/StreetRoute/getDistance ?t={Transmission Reference} &id={..."
 
No edit summary
Line 22: Line 22:
<pre>
<pre>
{
{
    "Version": "string",
  "Version": "string",
    "Units": "string",
  "Units": "string",
    "TransmissionReference": "string",
  "TransmissionReference": "string",
    "TransmissionResult": "string",
  "TransmissionResult": "string",
    "Records": [
  "Records": [
        {
    {
            "RecordID": "string",
      "RecordID": "string",
            "Results": "string",
      "Results": "string",
            "TravelTime": "string",
      "TravelTime": "string",
            "TotalDrivingDistance": "string"
      "TotalDrivingDistance": "string"
        }
    }
    ]
  ]
}
}
</pre>
</pre>

Revision as of 17:41, 6 August 2018

← Street Route Cloud API

Street Route Navigation
Introduction
Licensing
Input/Output
Request Fields
Response Fields
Examples
REST JSON
Batch JSON
Result Codes
Result Code Use
Street Route Result Codes
Sample Code



REST Request

https://streetroute.melissadata.net/WEB/StreetRoute/getDistance
?t={Transmission Reference}
&id={License Key}
&startLatitude={Start Latitude}
&startLongitude={Start Longitude}
&endLatitude={End Latitude}
&endLongitude={End Longitude}
&units={Units}


JSON Response

{
  "Version": "string",
  "Units": "string",
  "TransmissionReference": "string",
  "TransmissionResult": "string",
  "Records": [
    {
      "RecordID": "string",
      "Results": "string",
      "TravelTime": "string",
      "TotalDrivingDistance": "string"
    }
  ]
}