GET
/
v2
/
vrp
/
jobs
/
{id}
/
solution
curl --request GET \
  --url https://api.solvice.io/v2/vrp/jobs/{id}/solution \
  --header 'Authorization: <api-key>'
{
  "id": "0000-00000-00000-0000",
  "status": "SOLVED",
  "score": {
    "hardScore": 123,
    "mediumScore": 123,
    "softScore": 123,
    "feasible": true
  },
  "unresolved": "<any>",
  "trips": [
    {
      "visits": [
        {
          "arrival": "2022-03-10T16:15:50.000Z",
          "serviceTime": 123,
          "travelTime": 123,
          "distance": 123,
          "job": "<string>",
          "activity": "<string>",
          "location": {
            "latitude": 50.0987624,
            "longitude": 4.93849204,
            "name": "<string>"
          },
          "latlng": [
            123
          ],
          "breakTime": 123,
          "waitTime": 123
        }
      ],
      "resource": "resource-1",
      "date": "2021-01-01T00:00:00.000Z",
      "departureTime": "2021-01-01T08:00:00.000Z",
      "waitTime": 0,
      "travelTime": 123,
      "workTime": 123,
      "serviceTime": 123,
      "polyline": "polyline",
      "occupancy": 0.8,
      "start": {
        "arrival": "2022-03-10T16:15:50.000Z",
        "serviceTime": 123,
        "travelTime": 123,
        "distance": 123,
        "job": "<string>",
        "activity": "<string>",
        "location": {
          "latitude": 50.0987624,
          "longitude": 4.93849204,
          "name": "<string>"
        },
        "latlng": [
          123
        ],
        "breakTime": 123,
        "waitTime": 123
      },
      "end": {
        "arrival": "2022-03-10T16:15:50.000Z",
        "serviceTime": 123,
        "travelTime": 123,
        "distance": 123,
        "job": "<string>",
        "activity": "<string>",
        "location": {
          "latitude": 50.0987624,
          "longitude": 4.93849204,
          "name": "<string>"
        },
        "latlng": [
          123
        ],
        "breakTime": 123,
        "waitTime": 123
      },
      "distance": 123
    }
  ],
  "totalWaitTimeInSeconds": 123,
  "occupancy": 0.8,
  "totalTravelDistanceInMeters": 123,
  "totalTravelTimeInSeconds": 123,
  "totalServiceTimeInSeconds": 123,
  "unserved": "[job-1]",
  "suggestions": [
    {
      "score": {
        "hardScore": 123,
        "mediumScore": 123,
        "softScore": 123,
        "feasible": true
      },
      "assignments": [
        {
          "job": "<string>",
          "resource": "<string>",
          "suggestedArrival": "2022-03-10T16:15:50.000Z",
          "latestArrival": "2022-03-10T16:15:50.000Z",
          "executedAfter": "<string>",
          "score": {
            "hardScore": 123,
            "mediumScore": 123,
            "softScore": 123,
            "feasible": true
          },
          "scoreExplanation": {
            "constraint": "TRIP_CAPACITY",
            "score": "<string>"
          },
          "suggestedInitialArrival": "2022-03-10T16:15:50.000Z",
          "violations": [
            {
              "constraint": "TRIP_CAPACITY",
              "score": "<string>"
            }
          ]
        }
      ]
    }
  ],
  "messages": [
    "<string>"
  ],
  "violations": [
    {
      "name": "maxDistance",
      "value": 100,
      "level": "[HARD, MEDIUM, SOFT]"
    }
  ],
  "workloadFairness": 123
}

Authorizations

Authorization
string
header
required

Api Key based authentication (apikey)

Path Parameters

id
string
required

Response

200 - application/json
OK

OnRoute response from solve