OpenRouteService · Example Payload

Optimization Request

RoutingGeospatialDirectionsIsochronesMatrixGeocodingElevationOptimizationOpenStreetMapNavigationLogisticsHumanitarian

Optimization Request is an example object payload from OpenRouteService, with 3 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

vehiclesjobsoptions

Example Payload

Raw ↑
{
  "vehicles": [
    {
      "id": 1,
      "profile": "driving-car",
      "start": [8.681495, 49.41461],
      "end": [8.681495, 49.41461],
      "capacity": [4],
      "time_window": [28800, 72000]
    }
  ],
  "jobs": [
    {
      "id": 1,
      "description": "Delivery to customer A",
      "location": [8.686507, 49.41943],
      "service": 300,
      "amount": [1],
      "time_windows": [[32400, 54000]]
    },
    {
      "id": 2,
      "description": "Delivery to customer B",
      "location": [8.687872, 49.420318],
      "service": 300,
      "amount": [1],
      "time_windows": [[36000, 57600]]
    },
    {
      "id": 3,
      "description": "Delivery to customer C",
      "location": [8.680916, 49.415776],
      "service": 300,
      "amount": [2],
      "time_windows": [[39600, 61200]]
    }
  ],
  "options": {
    "g": true
  }
}