Difference between revisions of "Street Route:Batch JSON"

From Melissa Data Wiki
Jump to navigation Jump to search
Line 8: Line 8:
==JSON Batch Request==
==JSON Batch Request==
===Request Header===
===Request Header===
A maximum of up to 100 records per request can be sent.
The HTTP header requires the following values:
<pre>Content-Type: application/json
Accept: application/json
</pre>
<pre>
<pre>
Host: streetroute.melissadata.net
Host: streetroute.melissadata.net

Revision as of 16:10, 25 March 2021

← 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



JSON Batch Request

Request Header

A maximum of up to 100 records per request can be sent.

The HTTP header requires the following values:

Content-Type: application/json
Accept: application/json
Host: streetroute.melissadata.net
Connection: Keep-Alive
Content-Type: application/json; charset=utf-8


Request Body

A maximum of up to 100 records per request can be sent.

{
  "CustomerID": "string",
  "TransmissionReference": "string",
  "Units": "string",
  "Records": [
    {
      "RecordID": "string",
      "StartLatitude": "string",
      "StartLongitude": "string",
      "EndLatitude": "string",
      "EndLongitude": "string"
    },
    {
      "RecordID": "string",
      "StartLatitude": "string",
      "StartLongitude": "string",
      "EndLatitude": "string",
      "EndLongitude": "string"
    },
    {
      ...
    }
  ]
}


JSON Response

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