Street Route:Batch JSON: Difference between revisions
Jump to navigation
Jump to search
Created page with "{{StreetRouteNav |ExampleCollapse= }} {{CustomTOC}} ==JSON Batch Request== ===Request Header=== <pre> Host: streetroute.melissadata.net Connection: Keep-Alive Content-Type:..." |
No edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
==JSON Batch Request== | ==JSON Batch Request== | ||
A maximum of up to 100 records per request can be sent. | |||
===Request Header=== | ===Request Header=== | ||
The HTTP header requires the following values: | |||
<pre> | <pre> | ||
Host: streetroute.melissadata.net | Host: streetroute.melissadata.net | ||
Connection: Keep-Alive | Connection: Keep-Alive | ||
Content-Type: application/json; charset=utf-8 | Content-Type: application/json; charset=utf-8 | ||
Accept: application/json | |||
</pre> | </pre> | ||
===Request Body=== | |||
==Request Body== | |||
<pre> | <pre> | ||
{ | { |
Latest revision as of 17:58, 25 March 2021
Street Route Navigation | ||||
---|---|---|---|---|
| ||||
| ||||
| ||||
| ||||
Sample Code |
JSON Batch Request
A maximum of up to 100 records per request can be sent.
Request Header
The HTTP header requires the following values:
Host: streetroute.melissadata.net Connection: Keep-Alive Content-Type: application/json; charset=utf-8 Accept: application/json
Request Body
{ "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" }, { ... } ] }