DurationMatrix - v1

Description

This service sets the durations between stations that will be used in optimization.

Input

  1. apiKey: In order to obtain your API KEY, first log into logvrp web application and click "Manage API Key" button.
  2. computationTicketID: You will get this using Ticket service.
  3. durationMatrix: Duration matrix between stations. You can use null if you do not have the values. If you have values, provide an m x m matrix, where m is the number of all stations (including depot station). An array of array of double duration values in seconds (sec). The first member of the array is the duration values from the first station to other stations.

Output

Data: Result data
Message: Output message
ReturnCode: Return code of the output. If "Success" is true, then check this value.
Success: If unpected errors, or exceptions occur, this will be false.
success: Same as Success

REST - JSON

URL
Input
Body
You can use null if you do not have the values:
{
"apiKey": "your API key here",
"computationTicketID": "your computation ticket id",
"durationMatrix": null
}
If you have values, an example is here for 5x5 matrix:
{
"apiKey": "your API key here",
"computationTicketID": "your computation ticket id",
"durationMatrix": [
[
"0",
"394",
"405",
"335",
"378"
],
[
"356",
"0",
"176",
"767",
"649"
],
[
"412",
"189",
"0",
"713",
"657"
],
[
"375",
"762",
"718",
"0",
"194"
],
[
"303",
"641",
"650",
"187",
"0"
]
]
}
Headers
Content-Type: application/json

Method:
POST
Output
Response
{
"Data": null,
"Message": null,
"ReturnCode": 0,
"Success": true,
"success": true
}