DistanceMatrix - v1

Description

This service sets the distances 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. distanceMatrix: Distance 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 floating point distances in kilometers (km). The first member of the array is the distances 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",
  "distanceMatrix": null
}
 
If you have values, an example is here for 5x5 matrix:
{
  "apiKey": "your API key here",
  "computationTicketID": "your computation ticket id",
  "distanceMatrix": [
    [
      "0.0",
      "3.9",
      "4.0",
      "3.7",
      "3.0"
    ],
    [
      "3.9",
      "0.0",
      "1.8",
      "7.6",
      "6.4"
    ],
    [
      "4.0",
      "1.8",
      "0.0",
      "7.1",
      "6.5"
    ],
    [
      "3.7",
      "7.6",
      "7.1",
      "0.0",
      "1.8"
    ],
    [
      "3.0",
      "6.4",
      "6.5",
      "1.8",
      "0.0"
    ]
  ]
}
Headers
Content-Type: application/json

 

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

 

 
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk