Ticket - v1

Description

This service, is to get a computation ticket from logvrp.
You need to call this in order to do optimization.
The returned object is a computation ticket which is a string.
You will need to keep this computation ticket until you have obtained the optimizated routes.

Input

  1. apiKey: In order to obtain your API KEY, first log into logvrp web application and click "Manage API Key" button. 
  2. algorithmIDs: Array of algorithm IDs on logvrp. Use only of the values. Algorithm ID 1 is for MJDA algorithm, Algorithm ID 2 is for ALNS algorithm.

Output

Data: Computation Ticket ID (You will use this when calling other services)
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
{
  "apiKey": "your API key here",
  "algorithmIDs": [1]
}
Headers
Content-Type: application/json
 
Method:
 
POST 
 
Output
Response
{
  "Data": "RjgzQzY3REIwRTk3QTk3NTRGRjJDNzQ5M0I2NkI4Q0M=",
  "Message": null,
  "ReturnCode": 0,
  "Success": true,
  "success": true
}