{"openapi":"3.0.0","info":{"title":"Adiona FlexOps API","description":"# 1. Introduction\nWelcome to the Adiona FlexOps API, a powerful automation toolkit that allows medium and large logistics organizations, B2B/B2C delivery software platforms, manufacturers, and more to achieve new levels of efficiency.  <br>\n\nThis API gives you access to powerful machine-learning assisted delivery route planning at large scale, and also introduces entirely new algorithms to support depot and hub allocation for micro-fulfillment centres (MFC), Pickup/Dropoff systems (PUDO), and autonomous mobile hubs.  It also supports range limitations and charging constraints for EVs, AVs, and drones.  This is important because there are many route optimizers on the market, but most (if not all) are based on algorithms developed in the 1970's. For a detailed explanation of route optimization, head to our blog here: [https://www.adionatech.com/insights/route-optimization-overview](https://www.adionatech.com/insights/route-optimization-overview)\n\nUsing this API, you will be able to: \n\n- Bundle orders from different customers into delivery routes at the lowest cost.\n- Minimize the number of routes and therefore the number of required drivers.\n- Determine the optimal order of visits in each route so that the duration is minimized while still meeting all time windows and other constraints.\n- Support both pickup and delivery activities using the volume or weight capacity of the vehicle constantly.\n- Assign the right inventory to depots, dark stores, MFCs, or PUDOs based on flexible constraints such as time or distance.\n- Simulate and execute a range of business models quickly and cost efficiently.\n- If some orders cannot be included, they will be returned in a list of unassigned jobs.<br>\n\nThe data structures and endpoints are broken into three sections below:\n1) Vehicle Routing Problem High-Density (VRPHD):  This is our classic machine-learning powered API that solves for large scale delivery routing.\n2) Pickup and Dropoff Vehicle Routing Problem (PDVRP): This is for slightly smaller fleets with more complex constraints like lots of pickups and tight delivery time windows.\n3) Depot Allocation (DA): This is for allocating inventory to a fixed or mobile hub or vehicle, which feeds into the other algorithms above.\n\nRefer to our tutorials and case studies for more details on how to use each API/algorithm.\n\n### API Servers\nIf you are an Adiona user, you can access the Adiona FlexOps API via the following servers\n| Server | Base URL | \n| --- | --- |\n| Production | https://flexops-api.adionatech.com/api/v1 |\n| Sandbox | https://sandbox.flexops-api.adionatech.com/api/v1 |\n| Production Web App | https://command.adionatech.com/ |\n| Sandbox Web App | https://sandbox.command.adionatech.com/ |\n---\n# 2. Terminology\nWe endeavour to use industry-standard terms and for comprehensiveness we will define concepts here.\n\n| Term | Definition | \n| --- | --- | \n| *| This field is REQUIRED. Unstarred fields are optional |\n| API Key| A JWT token to access the endpoints. |\n| Geocoding | The process of determining the latitude and longitude coordinates of an address. | \n| Depot | The place where routes originate and/or terminate. | \n| Customer | The place where the stop (pickup or dropoff or job) is. |\n| Vehicle | Synonymous with \"Driver\" in Adiona, which can be interpreted as delivery agent or worker. |\n| Shift | Defines the time period of work according to the business needs. |\n| Meta Parameters | Specific values needed for optimization engine. |\n---\n# 3. Quick-start Guide\nTo get started, create an account at [https://command.adionatech.com/](https://command.adionatech.com/) and name your first organization. With your authentication details you are able to receive tokens via API.\n\n  <b>Do you want to experiment using CSV files first?  Sign up for our [free trial](http://www.adionatech.com) and get immediate access to the templates.</b>\n\n ### Get token\n\nTo get an authentication token, a user must post their email and password to the API authentication point\n\nWatch [this video](https://www.loom.com/share/beaa42d357af47cfb424cba786b897df) for a quick tutorial.\n\n1. Submit a request at the *\"/auth/token\"* endpoint. If there is no error in the request, the server will return a JWT token that is to be added to requests in the header. \n\n### Make authorised requests\nTo authenticate subsequent API requests, a user must provide a valid bearer token in the HTTP header, e.g. `Authorization: Bearer {bearer_token}`.\n1. Submit a request at the *\"jobs\"* endpoint or the *\"results\"* endpoint. If there is no error in the request, the server will return a status 200. \n2. Jobs that have large datasets can take more time. Use the `request id` given in step 1 to check the availability of the solution at the *\"jobs\"* endpoint periodically until a result containing the scenario is given with status 200. \n# 4. Visualization of the result\nUsers can use Adiona's Command app to visualize the data throughout the process. \n\n  - Access the production environment application at [https://command.adionatech.com](https://command.adionatech.com).\n  - Access the sandbox environment application at [https://sandbox.command.adionatech.com](https://sandbox.command.adionatech.com).\n  - The app allows for review of initial data, where users can double check their data before submitting for optimization\n  - Once data has been optimized the user can visually see the scenario on a map as well as a timeline with summary statistics.\n  \n# 5. API Description\n\n**The description below is mainly for VRPHD model.**\n\n---\n### Depot\nThe depot must be provided for submitting jobs, requires information including its location, and id, such as\n```\n\"depot\": {\n  \"id\": \"SampleDepot\",\n  \"location\": {\n        \"lat\": -33.902797,\n        \"long\": 151.1953028\n    }\n}\n```\n- `id`: *is the id of the depot you would like to connect customers to and associate vehicle displayed.\n- `location`: *is the geolocation of the depot, where lat is the latitude and long is the longitude. \n### Customer\nCustomers must be provided in an array as the example below:\n```\n\"customers\": [\n  {\n    \"id\": \"123456\"\n    \"location\": {\n      \"address\": \"1 Smith Street, Sydney, NSW, 2000\",\n        \"lat\": -33.8701447,\n        \"long\": 151.2064844\n    },\n    \"demand\": [1, 1, 5],\n    \"startTime\": \"00:00\",\n    \"endTime\": \"17:00\",\n    \"zone\": \"City Metro\",\n    \"serviceTime\": 120,\n    \"mandatoryVehicles: [\"vehicle1\"],\n    \"customData\": {\n      \"custom1\": \"diamond\",\n      \"custom2\": \"has stairs\",\n      \"custom3\": \"...\",\n      \"custom4\": \"...\"\n    }\n  },\n  ...\n]\n```\n- `id`: *is the unique identifier. It must be unique.\n- `location`: *is the geolocation in address string (to be geocoded by us) or lat/long (you have already geocoded it). \n  The following example has a valid address string location to be geocoded.\n     ```\n     \"location\": {\n             \"address\": \"1 Smith Street, Sydney, NSW, 2000, Australia\"\n      }\n     ```\n     If lat/long is also included in the location, the address string won't be geocoded and the lat/long will be used as-is. Note that it will not be checked to confirm that it represents the address string.\n     ```\n     \"location\": {\n            \"address\": \"1 Smith Street, Sydney, NSW, 2000\",\n            \"lat\": -33.8701447,\n            \"long\": 151.2064844\n        }\n    ```\n  \n    If either the lat or long is not included in the location, the validation will be unsuccessful and there will be an error message \"Request Failed Validation is unsuccessful! Error in customerID Longitude is missing!\"\"\n     ```\n      \"location\": {\n             \"address\": \"1 Smith Street, Sydney, NSW, 2000\",\n             \"lat\": -33.8701447\n         }\n     ```\n     If any one of the address strings is an invalid string that can't be geocoded, the lat/long will be updated to -29 & 165 respectively and the status will be set to \"Delayed\". The user can check the status of the results and use scenarioId to get the successfully geocoded addresses.  They can filter unsuccessful addresses by the reserved -29/165 to correct them.  They can also be corrected graphically in our Command software.\n     \n     ```\n     {\n        \"scenarioId\": \"5893218050768896\",\n        \"status\": \"Delayed\",\n        \"detail\": \"job has been received\",\n        \"timestamp\": 1620635162742,\n        \"comment\": \"There are bad addresses that cannot be Geocoded. The lat & long are set to -29 & 165 respectively. Use the scenarioId to get back the payload include the lat/long of the successfully geocoded address\"\n         }\n\n     ```\n\n- `demand`:  Array containing the customer's delivery requirements. Must follow these rules:\n  1. **Flexible ordering and length**: Include as many constraint elements as needed (weight, volume, quantity, etc.) in any order.\n  \n  2. **Required last element**: The last element must always be `1`, representing that this customer occupies one slot in the vehicle's customer capacity pool.\n  \n  3. **Matching with vehicle capacities**: The number of elements and their order must exactly match the `capacities` array. Each element at position N in `demand` must correspond to the same constraint type at position N in `capacities`.\n  \n  **Examples:**\n  - Weight only: `[25.5, 1]` (25.5 kg, 1 customer slot)\n  - Volume only: `[0.8, 1]` (0.8 m³, 1 customer slot)\n  - Weight and volume: `[25.5, 0.8, 1]` (25.5 kg, 0.8 m³, 1 customer slot)\n  - Multiple constraints: `[25.5, 0.8, 10, 1]` (25.5 kg, 0.8 m³, 10 items, 1 customer slot)\n  \n- `startTime`: *start time of the delivery window for the customer.\n- `endTime`: *end time of the delivery window for the customer.\n- `zone`: zone the customer belongs to. Requires customization.\n- `serviceTime`: number of seconds anticipated to service that stop. Each customer can have a unique serviceTime value and it must be a positive number. If the serviceTime is undefined it is selected from the shifts.\n- `mandatoryVehicles`: a list of vehicle IDs, the algorithm will ensure that the customer is assigned to one of the vehicles given.\n- `customData`: is an object that contains any custom data you would like to associate with the customer. This is useful for storing additional information about the stop.\n- `custom1`: this field particularly can be used to provide a custom shape to the stop if you pass in \"diamond\" or \"square\".\n\n### Vehicle\nVehicles must be provided for submitting jobs, in an array as the example below\n```\n\n \"vehicles\": [\n  {\n  \"id\": \"VIC1\",\n  \"available\": {\n    \"night\": {\n      \"capacities\": [123, 120, 100, 1000],\n      \"depots\": [\"SampleDepot\"],\n      \"target_trip_duration\": 6,\n    },\n    \"day\": {\n      \"capacities\": [120, 97, 100, 1000],\n      \"depots\": [\"SampleDepot\"],\n      \"target_trip_duration\": 8\n      }\n    }\n  },\n... ]\n```\n- `id`: *is the unique identifier.\n- `available`: *defines what shift availability the vehicle has.\n- `night` or `day`: is an example of a shift can be set to suit your business. See below.\n- `capacities`:  Array containing the vehicle's maximum capacity constraints. Must follow these rules:\n\n  1. **Flexible ordering and length**: Include as many constraint elements as needed, matching the structure of your `demand` arrays.\n  \n  2. **Required last element**: The last element must specify the maximum number of customers/stops this vehicle can serve in one trip. This is a **compulsory constraint** for the VRPHD model to work efficiently. Set this to a realistic value (e.g., if a truck typically delivers to 20 locations per day, set it to `20`). If unsure, set it to a reasonable upper bound.\n  \n  3. **Matching with customer demands**: The number of elements and their order must exactly match the `demand` arrays. Each element at position N in `capacities` must correspond to the same constraint type at position N in `demand`.\n  \n  **Examples:**\n  - Weight only: `[1000, 25]` (max 1000 kg, max 25 customers per trip)\n  - Volume only: `[15, 25]` (max 15 m³, max 25 customers per trip)\n  - Weight and volume: `[1000, 15, 25]` (max 1000 kg, max 15 m³, max 25 customers per trip)\n  - Multiple constraints: `[1000, 15, 500, 25]` (max 1000 kg, max 15 m³, max 500 items, max 25 customers per trip)\n  \n  The last element helps the algorithm start with a realistic customer count per vehicle and optimize from there.\n- `target_trip_duration`: the ideal trip duration in hours (decimal format, e.g., 1.5 = 90 minutes). This is an optional field, and if it is not provided it will default to the global `target_trip_duration` in the meta_parameters section. \n- `depots`: an array of depot ids that the vehicle can start from. If not provided, it will default to the depot id in the job payload.\n\n*note* The following features are only used if `unique_vehicle_per_zone` is enabled \n- `zone`: is the zone the vehicle will be used in. \n- `transport_mode`: the transport mode of the vehicle, must be either `DRIVING`, `TRUCK`, `BICYCLING`, or `WALKING`\n\n\n**By default, the VRPHD model will duplicate the list of vehicles to use them in different zones. If users want to specify unique vehicles per zone, the flag unique_vehicle_per_zone must be set to true in the meta_parameters section. In addition, each vehicle must indicate its own transport mode and zone. All vehicles in a shift of a zone must have the same transport mode and starting depot. For example:**\n\n```\n\n \"vehicles\": [\n  {\n  \"id\": \"unique_VIC1\",\n  \"zone\": \"Melbourne CBD\",\n  \"transport_mode\": \"BICYCLING\",\n  \"available\": {\n    \"night\": {\n      \"capacities\": [40, 20],\n      \"depots\": [\"SampleDepot1\"]\n    },\n    \"day\": {\n      \"capacities\": [40, 20],\n      \"depots\": [\"SampleDepot2\"]\n      }\n    }\n  },\n  {\n  \"id\": \"unique_VIC2\",\n  \"zone\": \"Melbourne CBD\",\n  \"transport_mode\": \"BICYCLING\",\n  \"available\": {\n    \"night\": {\n      \"capacities\": [40, 20],\n      \"depots\": [\"SampleDepot1\"]\n    },\n    \"day\": {\n      \"capacities\": [40, 20],\n      \"depots\": [\"SampleDepot2\"]\n      }\n    }\n  },\n... ]\n```\n\n### Shift\nShifts must be provided for submitting jobs, in an array as the example below. Shifts are actually more like \"Delivery Time Windows\". A \"Shift\" refers to the earliest time a driver is allowed to deliver to the first customer, and the latest time a driver is allowed to deliver to the last customer. It does not refer to the actual driver shift. <br><br>For example, a shift could be 10am-5pm, but the driver might still need to leave the depot at 9am to reach the first customer at 10am.\n\n```\n\n \"shifts\": [\n    {\n      \"id\": \"night\",\n      \"start\": \"00:00\",\n      \"end\": \"07:00\",\n      \"customerServiceTime\": 120,\n      \"respect_shift_start_time\": false,\n      \"respect_shift_end_time\": false\n    },\n    {\n      \"id\": \"day\",\n      \"start\": \"08:00\",\n      \"end\": \"17:00\",\n      \"customerServiceTime\": 120,\n      \"respect_shift_start_time\": false,\n      \"respect_shift_end_time\": false\n    },\n... ]\n```\n- `id`: *is the unique identifier.\n- `start`: *shift start time.\n- `end`: *shift end time.\n- `customerServiceTime`: *number of seconds anticipated to service a customer stop. The demo version is limited to a single service time per shift applied to all customers, however paid accounts get access to service times for individual vehicles or customers as described in the Customer array.\n- `respect_shift_start_time`: enforce the routes in this shift to always leave the depot at the shift start time\n- `respect_shift_end_time`: enforce the routes in this shift to always end sometime before the shift end time\n\n### Meta Parameters\nMetaparameters must be provided when submitting jobs to any model. These parameters guide the optimiser’s behaviour.\n\n#### Common Parameters (used across all models)\n\n```\n\"meta_parameters\": {\n\"target_trip_duration\": 8,\n\"special_time_windows\": [\"00:00-17:00\", \"02:00-10:00\"],\n\"workflow\": \"DELAYED\",\n\"combined_zones\": [\n    [\"City Metro\", \"Regional A\"],\n    ...\n],\n\"unique_vehicle_per_zone\": false,\n\"transport_mode\": \"TRUCK\",\n\"return_to_depot\": true\n}\n```\n\n- `target_trip_duration`: *Ideal trip duration in hours (decimal format, e.g., 1.5 = 90 minutes).*  \nThis is a **soft constraint** from depot departure to the final stop (or return if `return_to_depot` is true). It helps the algorithm suggest sensible route sizes.\n\n- `special_time_windows`: *Array of overlapping customer time windows.*  \nFor example, if customers accept delivery between `00:00–17:00` and you operate across multiple shifts, the optimiser will choose the best shift based on efficiency.\n\n- `workflow`: *Determines when optimisation starts.*\n<br>`\"DELAYED\"` wait for manual review in the Command App.\n<br>`\"IMMEDIATE\"` optimise as soon as data is submitted.\n\n- `combined_zones`: *Array of arrays indicating which zones should be combined for routing.*  \nNormally, different zones are strictly separated. This overrides that behaviour when custom zones are configured in your Adiona instance.\n\n- `unique_vehicle_per_zone`: *Whether each zone should have its own dedicated fleet.*  \nDefault is `false`, meaning the same vehicle pool is reused across all zones even if vehicles have a zone assigned.\n\n- `transport_mode`: *Specifies how routes are calculated, impacting speed profiles and road types.*\n<br>`DRIVING` – Cars, motorbikes, vans (default)\n<br>`TRUCK` – Light, medium, or heavy trucks (truck-specific speeds and restrictions)\n<br>`BICYCLING` – Bicycle couriers\n<br>`WALKING` – Foot delivery  \n\n- `return_to_depot`: *Whether vehicles return to depot at the end of the route.*  \nDefault is `false`. If `true`, routes will be planned to return to the origin depot.\n\n---\n### VRPHD specific meta_parameters\n\nInherits all **common parameters**, plus:\n\n- `neighbour_distance_threshold`: Radius (in metres) for Radius Routing. The maximum distance between two customers to be considered neighbours — the driver will park once and serve all neighbours in the cluster before moving on. **Radius Routing is always enabled for VRPHD**, so this parameter directly controls the cluster radius. Example: `30` (metres).\n---\n### PDVRP specific meta_parameters\n\nInherits all **common parameters**, plus:\n\n- `vehicle_capacity_labels`: Visual label for the capacity dimension for router clarity.\n- `customer_demand_labels`: Visual label for the capacity dimension for router clarity.\n- `target_trip_distance`: Ideal route length in kilometres (soft constraint)\n- `max_algorithm_execution_time`: The maximum amount of time for the algorithm to perform iteration cycles. You can experiment with this value to achieve different results. Note that the algorithm will end if it has not found a significant improvement between iteration cycles.\n- `avoid_toll_road`: The engine will prevent routing on any toll roads.\n- `get_polyline_and_toll_cost`: When enabled, the engine will return polylines for each route and additionally calculate the cost of any toll roads. This is the way to retrieve polyline data for your routes.\n- `force_delivery_before_pickup`: All delivery stops will be routed before any pickup stops. This is useful if you have a last-in first-out (LIFO) delivery pattern.\n<br>\n\n---\n### DA specific meta_parameters\n\nInherits all **common parameters**, plus:\n\n- `depot_capacity_labels`: Visual label for the capacity dimension for router clarity.\n- `customer_demand_labels`: Visual label for the capacity dimension for router clarity.\n- `depot_boundary`: Radius (in metres) around depots for allocation\n<br>\n---\n<br>\n### TSP - Traveling Salesperson Problem\nThis endpoint returns the optimal sequence of stops for a given list of deliveries, pickups, and/or shipments (a combination of a pickup and a delivery that does not originate or end at a depot).<br>\n\nInputs:\n- `maximumTripDuration`: *the ideal trip duration in hours in decimal format, e.g. 1.5 hours = 90 minutes. This includes from when a driver leaves the depot to when they complete their last stop or return to the depot. This is a hard constraint.\n- `maximumTripDistance`: *the maximum trip distance in kilometers. \n- `serveFirstStopAt`: desired time to serve the first stop in Epoch seconds.\n- `idOfFirstServicedStop`: Force a stop to be serviced first.\n- `idOfLastServicedStop`: Force a stop to be serviced last.\n- `speedFactor`: Artificially increase the speed of the driver. Units are decimal, 1 = 100%, 1.5 = 150%, and so on.\n- `ignoreStopTimewindows`: don't constrain the delivery time by the stated time windows for that customer. This is a boolean, default false.\n- `ignoreVehicleCapacity`: don't constrain the route based on the vehicle capacity. Boolean, default false.\n- `maximumAlgorithmExecutionTime`: (seconds) The maximum amount of time for the algorithm to perform iteration cycles. You can experiment with this value to achieve different results. Note that the algorithm will end if it has not found a significant improvement between iteration cycles.\n- `capacities`: an array of the vehicle capacities that must match the demands array of the stops.\n- `demands`: an array of the customer demand, e.g. carton count, weight, or volume, that must match the capacities array of the vehicle.\n- `transportMode`: See the metaparameters section above.\n- `serviceTime`: the amount of time each stop will take in seconds.\n- `doSubClustering`: enable Radius Routing. When `true`, the algorithm groups nearby customers into clusters based on `neighbourDistanceThreshold` — the driver parks once and serves all neighbours in the cluster before moving on. Boolean, default `false`.\n- `neighbourDistanceThreshold`: defines the Radius (in metres) for Radius Routing. The maximum distance between two customers for them to be considered neighbours and grouped into the same cluster. Only applies when `doSubClustering` is `true`. Example: `50` (metres).\n\nOutputs:\n- `status`: Finished, InProgress, or Failed\n- `usedServiceTime`: The actual service time used for this stop, which may have been overridden from default by the user.\n- `cumulativeDistance`: The running total of distance from the origin. To calculate a specific leg distance, subtract the previous stop cumulativeDistance from the target stop cumulativeDistance.\n\n\n\n\n# 6. Save and Sync\n\n`Save` and `Sync` buttons & flags are for the routers to manage the workflow using our frontend. We strongly recommend that each optimized job should only be handled by one router.\n\nAfter a job is optimized, it has status `Optimized`. If you try fetching the result using the endpoint `result/:jobId`, you will see the returned payload includes the `version` field, which has value as `original`. Basically, this is the original optimization output which has not been manually modified by any users.\n\nIf a router opens the optimized job and makes some changes such as moving a stop from route 1 to route 2, the changes are only stored locally in the browser. If the router wants to save the temporary changes on the server, they can press the Save button and the job status becomes `Saved`. Now if the router closes or cleans their browser, they still see the changes when they reload the job.\n\nAnother benefit of the `Save` button is to share what has been modified with the team. Please note that every member can press the `Save` button at any time but the server only stores the latest version. In general, the `Save` button is for saving a work-in-progress job and if you try fetching the result using the endpoint `result/:jobId`, you will see the `version` flag is still `origin`.\n\nAfter the router finishes editing the job, they can press the `Sync` button. The synced version of the job will be stored in the server, and the job status will change to `sync`. If you try fetching the result using the endpoint `result/:jobId`, you will see the `version` flag is `synced`, which can be used in your backend to check if the job has been approved by the router. If the router has second thoughts, they can still edit the job. Our server only stores the latest synced version. In order to override the previous synced version, remember to press `Sync` again when done. We recommend you to build an interface for the router to fetch the result back whenever they want.","version":"1.3.0","termsOfService":"https://www.adionatech.com/flexops-api","contact":{"name":"Adiona FlexOps","url":"https://www.adionatech.com/flexops-api"}},"servers":[{"url":"https://flexops-api.adionatech.com/api/v1","description":"Release version of Adiona FlexOps API. Stable and up-to-date."},{"url":"https://sandbox.flexops-api.adionatech.com/api/v1","description":"Sandbox version of Adiona FlexOps API. Beta endpoints will be deployed here for testing purpose."}],"paths":{"/auth/token":{"post":{"summary":"Get an authenticated token to make authorized requests to the API.","description":"This endpoint takes your encoded email and password and returns a JWT token to be used in the header with 'Bearer {token}'.","tags":["Auth"],"security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/x-www-form-urlencoded":{"schema":{"allOf":[{},{"$ref":"#/components/schemas/authentication"}]}}}},"responses":{"200":{"description":"A successful auth request. A `token` is returned to user.","content":{"application/json":{"schema":{"type":"object","example":{"success":true,"token":"eyhkgkrlmkrlm...","expiresAt":1610423569,"expiredIn":3600}}}}},"204":{"description":"Response to a successful request that won't be returning a body."},"400":{"description":"Bad Request (A validation exception has occurred.)"}}}},"/vrphd/jobs/submit":{"post":{"summary":"submit data to the VRPHD Model for delayed or immediate optimisation.","description":"Data must meet the specific requirements and if any are not met then the api will return the exact reason why it cannot be optimized.<br><br>Delayed optimisation gives the users time to review their data on the Command App before submitting for optimisation.","tags":["VRPHD"],"security":[{"bearerAuth":["bearer token"]}],"operationId":"postNewJob","requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{},{"$ref":"#/components/schemas/job_payload"}]}}}},"responses":{"200":{"description":"A successful request fetched. A `request id` is returned to user.","content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"number","example":5707820058017792}}}}}},"204":{"description":"Response to a successful request that won't be returned a body."},"400":{"description":"Bad Request (A validation exception has occurred)."},"401":{"description":"Unauthorized (Invalid authorization credentials)."},"403":{"description":"When authentication succeeded but authenticated user doesn't have access to the resource."},"404":{"description":"Not Found (The resource you have specified cannot be found)."},"500":{"description":"Internal Server Error."},"501":{"description":"Not Implemented (The method you have called has not been implemented)."},"503":{"description":"Rate Limit Exceeded."}}}},"/vrphd/jobs/{jobId}":{"get":{"summary":"get the data of previously submitted VRPHD job .","description":"This endpoint will return the data of a previously submitted job using the jobId.","tags":["VRPHD"],"security":[{"bearerAuth":["bearer token"]}],"parameters":[{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}},{"name":"divisionId","in":"query","required":false,"schema":{"type":"string","default":"default"}}],"operationId":"getJob","responses":{"200":{"description":"This endpoint responds with the data used for optimization.","content":{"application/json":{"schema":{"allOf":[{},{"$ref":"#/components/schemas/job_response"}]}}}}}},"put":{"summary":"update a delayed VRPHD job payload.","description":"Data must meet the specific requirements and if any are not met then the api will return the exact reason why it cannot be optimized. <br><br>Delayed optimisation gives the users time to review their data on the Command App before submitting for optimisation.","tags":["VRPHD"],"security":[{"bearerAuth":["bearer token"]}],"parameters":[{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}],"operationId":"putVrphdJob","requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{},{"$ref":"#/components/schemas/job_payload"}]}}}},"responses":{"200":{"description":"A successful request fetched. A `request id` is returned to user.","content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"number","example":5707820058017792},"success":{"type":"boolean","example":true}}}}}},"204":{"description":"Response to a successful request that won't be returned a body."},"400":{"description":"Bad Request (A validation exception has occurred)."},"401":{"description":"Unauthorized (Invalid authorization credentials)."},"403":{"description":"When authentication succeeded but authenticated user doesn't have access to the resource."},"404":{"description":"Not Found (The resource you have specified cannot be found)."},"500":{"description":"Internal Server Error."},"501":{"description":"Not Implemented (The method you have called has not been implemented)."},"503":{"description":"Rate Limit Exceeded."}}}},"/vrphd/jobs/optimize/{jobId}":{"post":{"summary":"optimize a delayed VRPHD job payload.","description":"Data must meet the specific requirements and if any are not met then the api will return the exact reason why it cannot be optimized. <br><br>Delayed optimisation gives the users time to review their data on the Command App before submitting for optimisation.","tags":["VRPHD"],"security":[{"bearerAuth":["bearer token"]}],"parameters":[{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"comment":{"type":"string","description":"Optional comment","default":"Sydney Metro"},"divisionId":{"type":"string","description":"Division ID","default":"default"}}}}}},"operationId":"putOptimizeVrphdJob","responses":{"200":{"description":"A successful request fetched. A `request id` is returned to user.","content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"number","example":5707820058017792},"success":{"type":"boolean","example":true}}}}}},"204":{"description":"Response to a successful request that won't be returned a body."},"400":{"description":"Bad Request (A validation exception has occurred)."},"401":{"description":"Unauthorized (Invalid authorization credentials)."},"403":{"description":"When authentication succeeded but authenticated user doesn't have access to the resource."},"404":{"description":"Not Found (The resource you have specified cannot be found)."},"500":{"description":"Internal Server Error."},"501":{"description":"Not Implemented (The method you have called has not been implemented)."},"503":{"description":"Rate Limit Exceeded."}}}},"/vrphd/results/{jobId}":{"get":{"summary":"get the VRPHD result status .","description":"This endpoint responds with the current state of the job. Includes whether it is progress or optimized.","tags":["VRPHD"],"security":[{"bearerAuth":["bearer token"]}],"parameters":[{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}},{"name":"divisionId","in":"query","required":false,"schema":{"type":"string","default":"default"}}],"operationId":"getResult","responses":{"200":{"description":"A successful result fetched. A `scenario id` is returned to user.","content":{"application/json":{"schema":{"allOf":[{},{"$ref":"#/components/schemas/result"}]}}}},"204":{"description":"Response to a successful request that won't be returning a body."},"400":{"description":"Bad Request (A validation exception has occurred.)"},"401":{"description":"Unauthorized (Invalid authorization credentials.)"},"403":{"description":"When authentication succeeded but authenticated user doesn't have access to the resource"},"404":{"description":"Not Found (The resource you have specified cannot be found)"},"500":{"description":"Internal Error"},"501":{"description":"Not Implemented (The method you have called has not been implemented)"},"503":{"description":"Rate Limit Exceeded"}}}},"/pdvrp/jobs/submit":{"post":{"summary":"submit data to the PDVRP model for delayed or immediate optimisation.","description":"Data must meet the specific requirements and if any are not met then the api will return the exact reason why it cannot be optimized. <br><br>Delayed optimisation gives the users time to review their data on the Command App before submitting for optimisation.","tags":["PDVRP"],"security":[{"bearerAuth":["bearer token"]}],"operationId":"postNewPdvrpJob","requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{},{"$ref":"#/components/schemas/job_pdvrp_payload"}]}}}},"responses":{"200":{"description":"A successful request fetched. A `request id` is returned to user.","content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"number","example":5707820058017792},"success":{"type":"boolean","example":true}}}}}},"204":{"description":"Response to a successful request that won't be returned a body."},"400":{"description":"Bad Request (A validation exception has occurred)."},"401":{"description":"Unauthorized (Invalid authorization credentials)."},"403":{"description":"When authentication succeeded but authenticated user doesn't have access to the resource."},"404":{"description":"Not Found (The resource you have specified cannot be found)."},"500":{"description":"Internal Server Error."},"501":{"description":"Not Implemented (The method you have called has not been implemented)."},"503":{"description":"Rate Limit Exceeded."}}}},"/pdvrp/jobs/{jobId}":{"get":{"summary":"get the data of the previously submitted PDVRP job.","description":"This endpoint will return the data of a previously submitted job using the jobId.","tags":["PDVRP"],"security":[{"bearerAuth":["bearer token"]}],"parameters":[{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}},{"name":"divisionId","in":"query","required":false,"schema":{"type":"string","default":"default"}}],"operationId":"getPdvrpJob","responses":{"200":{"description":"This endpoint responds with the data used for optimization.","content":{"application/json":{"schema":{"allOf":[{},{"$ref":"#/components/schemas/pdvrp_job_response"}]}}}}}},"put":{"summary":"update a delayed PDVRP job payload.","description":"Data must meet the specific requirements and if any are not met then the api will return the exact reason why it cannot be optimized. <br><br>Delayed optimisation gives the users time to review their data on the Command App before submitting for optimisation.","tags":["PDVRP"],"security":[{"bearerAuth":["bearer token"]}],"parameters":[{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}],"operationId":"putPdvrpJob","requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{},{"$ref":"#/components/schemas/job_pdvrp_payload"}]}}}},"responses":{"200":{"description":"A successful request fetched. A `request id` is returned to user.","content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"number","example":5707820058017792},"success":{"type":"boolean","example":true}}}}}},"204":{"description":"Response to a successful request that won't be returned a body."},"400":{"description":"Bad Request (A validation exception has occurred)."},"401":{"description":"Unauthorized (Invalid authorization credentials)."},"403":{"description":"When authentication succeeded but authenticated user doesn't have access to the resource."},"404":{"description":"Not Found (The resource you have specified cannot be found)."},"500":{"description":"Internal Server Error."},"501":{"description":"Not Implemented (The method you have called has not been implemented)."},"503":{"description":"Rate Limit Exceeded."}}}},"/pdvrp/jobs/optimize/{jobId}":{"post":{"summary":"optimize a delayed PDVRP job payload.","description":"Data must meet the specific requirements and if any are not met then the api will return the exact reason why it cannot be optimized. <br><br>Delayed optimisation gives the users time to review their data on the Command App before submitting for optimisation.","tags":["PDVRP"],"security":[{"bearerAuth":["bearer token"]}],"parameters":[{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"comment":{"type":"string","description":"Optional comment","default":"Sydney Metro"},"divisionId":{"type":"string","description":"Division ID","default":"default"}}}}}},"operationId":"putOptimizePdvrpJob","responses":{"200":{"description":"A successful request fetched. A `request id` is returned to user.","content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"number","example":5707820058017792},"success":{"type":"boolean","example":true}}}}}},"204":{"description":"Response to a successful request that won't be returned a body."},"400":{"description":"Bad Request (A validation exception has occurred)."},"401":{"description":"Unauthorized (Invalid authorization credentials)."},"403":{"description":"When authentication succeeded but authenticated user doesn't have access to the resource."},"404":{"description":"Not Found (The resource you have specified cannot be found)."},"500":{"description":"Internal Server Error."},"501":{"description":"Not Implemented (The method you have called has not been implemented)."},"503":{"description":"Rate Limit Exceeded."}}}},"/pdvrp/results/{jobId}":{"get":{"summary":"get the PDVRP result status.","description":"This endpoint responds with the current state of the job. Includes whether it is progress or optimized.","tags":["PDVRP"],"security":[{"bearerAuth":["bearer token"]}],"parameters":[{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}},{"name":"version","in":"query","schema":{"type":"string"}},{"name":"divisionId","in":"query","required":false,"schema":{"type":"string","default":"default"}}],"operationId":"getPdvrpResult","responses":{"200":{"description":"A successful result fetched. A `scenario id` is returned to user.","content":{"application/json":{"schema":{"allOf":[{},{"$ref":"#/components/schemas/pdvrp_result"}]}}}},"204":{"description":"Response to a successful request that won't be returning a body."},"400":{"description":"Bad Request (A validation exception has occurred.)"},"401":{"description":"Unauthorized (Invalid authorization credentials.)"},"403":{"description":"When authentication succeeded but authenticated user doesn't have access to the resource"},"404":{"description":"Not Found (The resource you have specified cannot be found)"},"500":{"description":"Internal Error"},"501":{"description":"Not Implemented (The method you have called has not been implemented)"},"503":{"description":"Rate Limit Exceeded"}}}},"/da/jobs/submit":{"post":{"summary":"submit data to the DA model for delayed or immediate optimisation.","description":"Data must meet the specific requirements and if any are not met then the api will return the exact reason why it cannot be optimized. <br><br>Delayed optimisation gives the users time to review their data on the Command App before submitting for optimisation. <br><br> Please note that the following fields are not used in the Depot Allocation algorithm. You may include them for the sake of convenience and data integrity. They will be included when you export your end result (So you can then feed it directly through the PDVRP model). They are **optional** fields. <br><br>Customer <br>`type` <br>`startTime` <br>`endTime` <br>`serviceTime` <br><br>Depot<br>`earliest_departure_time`<br>`latest_arrival_time`.","tags":["DA"],"security":[{"bearerAuth":["bearer token"]}],"operationId":"postNewDaJob","requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{},{"$ref":"#/components/schemas/job_da_payload"}]}}}},"responses":{"200":{"description":"A successful request fetched. A `request id` is returned to user.","content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"number","example":5707820058017792},"success":{"type":"boolean","example":true}}}}}},"204":{"description":"Response to a successful request that won't be returned a body."},"400":{"description":"Bad Request (A validation exception has occurred)."},"401":{"description":"Unauthorized (Invalid authorization credentials)."},"403":{"description":"When authentication succeeded but authenticated user doesn't have access to the resource."},"404":{"description":"Not Found (The resource you have specified cannot be found)."},"500":{"description":"Internal Server Error."},"501":{"description":"Not Implemented (The method you have called has not been implemented)."},"503":{"description":"Rate Limit Exceeded."}}}},"/da/jobs/{jobId}":{"get":{"summary":"get the data of the previously submitted DA job.","description":"This endpoint will return the data of a previously submitted job using the jobId.","tags":["DA"],"security":[{"bearerAuth":["bearer token"]}],"parameters":[{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}},{"name":"divisionId","in":"query","required":false,"schema":{"type":"string","default":"default"}}],"operationId":"getDaJob","responses":{"200":{"description":"This endpoint responds with the data used for optimization.","content":{"application/json":{"schema":{"allOf":[{},{"$ref":"#/components/schemas/da_job_response"}]}}}}}},"put":{"summary":"update a delayed DA job payload.","description":"Data must meet the specific requirements and if any are not met then the api will return the exact reason why it cannot be optimized. <br><br>Delayed optimisation gives the users time to review their data on the Command App before submitting for optimisation.","tags":["DA"],"security":[{"bearerAuth":["bearer token"]}],"parameters":[{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}],"operationId":"putDaJob","requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{},{"$ref":"#/components/schemas/job_da_payload"}]}}}},"responses":{"200":{"description":"A successful request fetched. A `request id` is returned to user.","content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"number","example":5707820058017792},"success":{"type":"boolean","example":true}}}}}},"204":{"description":"Response to a successful request that won't be returned a body."},"400":{"description":"Bad Request (A validation exception has occurred)."},"401":{"description":"Unauthorized (Invalid authorization credentials)."},"403":{"description":"When authentication succeeded but authenticated user doesn't have access to the resource."},"404":{"description":"Not Found (The resource you have specified cannot be found)."},"500":{"description":"Internal Server Error."},"501":{"description":"Not Implemented (The method you have called has not been implemented)."},"503":{"description":"Rate Limit Exceeded."}}}},"/da/jobs/optimize/{jobId}":{"post":{"summary":"optimize a delayed DA job payload.","description":"Data must meet the specific requirements and if any are not met then the api will return the exact reason why it cannot be optimized. <br><br>Delayed optimisation gives the users time to review their data on the Command App before submitting for optimisation.","tags":["DA"],"security":[{"bearerAuth":["bearer token"]}],"parameters":[{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"comment":{"type":"string","description":"Optional comment","default":"Sydney Metro"},"divisionId":{"type":"string","description":"Division ID","default":"default"}}}}}},"operationId":"putOptimizeDaJob","responses":{"200":{"description":"A successful request fetched. A `request id` is returned to user.","content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"number","example":5707820058017792},"success":{"type":"boolean","example":true}}}}}},"204":{"description":"Response to a successful request that won't be returned a body."},"400":{"description":"Bad Request (A validation exception has occurred)."},"401":{"description":"Unauthorized (Invalid authorization credentials)."},"403":{"description":"When authentication succeeded but authenticated user doesn't have access to the resource."},"404":{"description":"Not Found (The resource you have specified cannot be found)."},"500":{"description":"Internal Server Error."},"501":{"description":"Not Implemented (The method you have called has not been implemented)."},"503":{"description":"Rate Limit Exceeded."}}}},"/da/results/{jobId}":{"get":{"summary":"get the DA result status.","description":"This endpoint responds with the current state of the job. Includes whether it is progress or optimized.","tags":["DA"],"security":[{"bearerAuth":["bearer token"]}],"parameters":[{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}},{"name":"version","in":"query","schema":{"type":"string"}},{"name":"divisionId","in":"query","required":false,"schema":{"type":"string","default":"default"}}],"operationId":"getDaResult","responses":{"200":{"description":"A successful result fetched. A `scenario id` is returned to user.","content":{"application/json":{"schema":{"allOf":[{},{"$ref":"#/components/schemas/da_result"}]}}}},"204":{"description":"Response to a successful request that won't be returning a body."},"400":{"description":"Bad Request (A validation exception has occurred.)"},"401":{"description":"Unauthorized (Invalid authorization credentials.)"},"403":{"description":"When authentication succeeded but authenticated user doesn't have access to the resource"},"404":{"description":"Not Found (The resource you have specified cannot be found)"},"500":{"description":"Internal Error"},"501":{"description":"Not Implemented (The method you have called has not been implemented)"},"503":{"description":"Rate Limit Exceeded"}}}},"/geo-splitters":{"get":{"summary":"get the available geo_splitters","description":"This endpoint returns an array of all the available geosplitters that you may apply to your scenario (currently only supported in DA)","tags":["GeoSplitters"],"security":[{"bearerAuth":["bearer token"]}],"operationId":"getGeoSplitters","responses":{"200":{"description":"A successful result fetched. A list of available `geo_splitters` are returned to the user","content":{"application/json":{"schema":{"type":"object","properties":{"geo_splitters":{"type":"array","items":{"allOf":[{},{"$ref":"#/components/schemas/geo_splitter_response"}]}},"success":{"type":"boolean","example":true}}}}}},"204":{"description":"Response to a successful request that won't be returning a body."},"400":{"description":"Bad Request (A validation exception has occurred.)"},"401":{"description":"Unauthorized (Invalid authorization credentials.)"},"403":{"description":"When authentication succeeded but authenticated user doesn't have access to the resource"},"404":{"description":"Not Found (The resource you have specified cannot be found)"},"500":{"description":"Internal Error"},"501":{"description":"Not Implemented (The method you have called has not been implemented)"},"503":{"description":"Rate Limit Exceeded"}}},"post":{"summary":"submit a new geo_splitter","description":"This endpoint allows you to submit a new geosplitter and store it in the backend.","tags":["GeoSplitters"],"security":[{"bearerAuth":["bearer token"]}],"operationId":"postGeoSplitter","requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{},{"$ref":"#/components/schemas/geo_splitter_payload"}]}}}},"responses":{"200":{"description":"GeoSplitter submitted successfully."},"204":{"description":"Response to a successful request that won't be returning a body."},"400":{"description":"Bad Request (A validation exception has occurred.)"},"401":{"description":"Unauthorized (Invalid authorization credentials.)"},"403":{"description":"When authentication succeeded but authenticated user doesn't have access to the resource"},"404":{"description":"Not Found (The resource you have specified cannot be found)"},"500":{"description":"Internal Error"},"501":{"description":"Not Implemented (The method you have called has not been implemented)"},"503":{"description":"Rate Limit Exceeded"}}}},"/geo-splitters/{GeosplitterId}":{"get":{"summary":"get the available geo_splitters","description":"This endpoint returns an array of all the available geosplitters that you may apply to your scenario (currently only supported in DA)","tags":["GeoSplitters"],"security":[{"bearerAuth":["bearer token"]}],"operationId":"getGeoSplitterById","parameters":[{"name":"GeosplitterId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"A successful result fetched. A list of available `geo_splitters` are returned to the user","content":{"application/json":{"schema":{"type":"object","properties":{"geo_splitters":{"type":"array","items":{"allOf":[{},{"$ref":"#/components/schemas/geo_splitter_response"}]}},"success":{"type":"boolean","example":true}}}}}},"204":{"description":"Response to a successful request that won't be returning a body."},"400":{"description":"Bad Request (A validation exception has occurred.)"},"401":{"description":"Unauthorized (Invalid authorization credentials.)"},"403":{"description":"When authentication succeeded but authenticated user doesn't have access to the resource"},"404":{"description":"Not Found (The resource you have specified cannot be found)"},"500":{"description":"Internal Error"},"501":{"description":"Not Implemented (The method you have called has not been implemented)"},"503":{"description":"Rate Limit Exceeded"}}},"put":{"summary":"update a geo_splitter","description":"This endpoint allows updating an existing geo_splitter","tags":["GeoSplitters"],"parameters":[{"name":"GeosplitterId","in":"path","required":true,"schema":{"type":"string"}}],"security":[{"bearerAuth":["bearer token"]}],"operationId":"putGeoSplitter","requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{},{"$ref":"#/components/schemas/geo_splitter_payload"}]}}}},"responses":{"200":{"description":"GeoSplitter submitted successfully."},"204":{"description":"Response to a successful request that won't be returning a body."},"400":{"description":"Bad Request (A validation exception has occurred.)"},"401":{"description":"Unauthorized (Invalid authorization credentials.)"},"403":{"description":"When authentication succeeded but authenticated user doesn't have access to the resource"},"404":{"description":"Not Found (The resource you have specified cannot be found)"},"500":{"description":"Internal Error"},"501":{"description":"Not Implemented (The method you have called has not been implemented)"},"503":{"description":"Rate Limit Exceeded"}}}},"/tsp/pdtsp/jobs/submit":{"post":{"summary":"submit a list of jobs to be returned in the optimal visit sequence.","description":"TSP = Traveling Salesperson Problem. Use this endpoint to submit a list of jobs that you want the optimal sequence to visit. Take care that the trip durations are in hours and all other time parameters are in seconds. Three job types are supported - delivery, pickup, and shipment. Refer to the description above for further details.","tags":["TSP"],"security":[{"bearerAuth":[]}],"operationId":"submitTSPJob","requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{},{"$ref":"#/components/schemas/tsp_submit_payload"}]}}}},"responses":{"200":{"description":"A successful TSP submission. The job id and status of the optimization are returned.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the request was successful","example":true},"jobId":{"type":"string","description":"The unique identifier for the submitted job","example":"6273380986650624"},"status":{"type":"string","description":"Current status of the job optimization","example":"InProgress"}},"required":["success","jobId","status"]}}}},"204":{"description":"Response to a successful request that won't be returning a body."},"400":{"description":"Bad Request (A validation exception has occurred.)"}}}},"/tsp/pdtsp/jobs/{jobId}":{"get":{"summary":"get the input parameters for a submitted TSP job","description":"This returns the JSON data of a submitted job - prior to optimisation","tags":["TSP"],"security":[{"bearerAuth":["bearer token"]}],"operationId":"tspGetJobInput","parameters":[{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}},{"name":"divisionId","in":"query","required":false,"schema":{"type":"string","default":"default"}}],"responses":{"200":{"description":"A successful result fetched. A sequence of job id are returned to the user.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the request was successful","example":true},"jobId":{"type":"string","description":"The unique identifier for the job","example":"6273380986650624"},"input":{"allOf":[{},{"$ref":"#/components/schemas/tsp_submit_payload"}]}},"required":["success","jobId","input"]}}}},"204":{"description":"Response to a successful request that won't be returning a body."},"400":{"description":"Bad Request (A validation exception has occurred.)"},"401":{"description":"Unauthorized (Invalid authorization credentials.)"},"403":{"description":"When authentication succeeded but authenticated user doesn't have access to the resource"},"404":{"description":"Not Found (The resource you have specified cannot be found)"},"500":{"description":"Internal Error"},"501":{"description":"Not Implemented (The method you have called has not been implemented)"},"503":{"description":"Rate Limit Exceeded"}}}},"/tsp/pdtsp/results/{jobId}":{"get":{"summary":"get a TSP result","description":"This returns the list of jobs in the correct sequence. Start and End of the sequence are reserved.","tags":["TSP"],"security":[{"bearerAuth":["bearer token"]}],"operationId":"tspGetResult","parameters":[{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}},{"name":"divisionId","in":"query","required":false,"schema":{"type":"string","default":"default"}}],"responses":{"200":{"description":"A successful result fetched. A sequence of job id are returned to the user.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":true,"description":"Indicates whether the request was successful"},"jobId":{"type":"string","example":"6273380986650624","description":"The unique identifier for the job"},"output":{"type":"object","properties":{"comment":{"type":"string","example":"Daily routes for zone A","description":"Optional comment describing the job"},"status":{"type":"string","example":"Finished"},"message":{"type":"string","example":"blank/error message"},"submissionTime":{"type":"number","example":1681965459000},"submittedBy":{"type":"string","example":"user_id"},"finishTime":{"type":"string","example":1681965459300},"sequence":{"allOf":[{},{"$ref":"#/components/schemas/eta_results_sequence"}]},"unassigned":{"type":"object","properties":{"stop3":{"type":"object","properties":{"id":{"type":"string","example":"stop3"},"usedServiceTime":{"type":"number","example":120}}},"stop4":{"type":"object","properties":{"id":{"type":"string","example":"stop4"},"usedServiceTime":{"type":"number","example":100}}}}},"summary":{"type":"object","properties":{"drivingDistance":{"type":"number","example":500},"serviceTime":{"type":"number","example":600},"drivingTime":{"type":"number","example":400},"totalTime":{"type":"number","example":1000},"cost":{"anyOf":[{"type":"string"},{"type":"number"}],"example":0},"violationTime":{"type":"number","example":0},"waitingTime":{"type":"number","example":0}}}}}},"required":["success","jobId","output"]}}}}}}},"/tsp/eta/jobs/submit":{"post":{"summary":"submit a list of jobs to receive an estimate on arrival/departure times","description":"ETA = Estimated Time of Arrival. Use this endpoint to submit a sequence of jobs to estimate arrival and departure times at each job.","tags":["ETA"],"security":[{"bearerAuth":[]}],"operationId":"SubmitETAJob","requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{},{"$ref":"#/components/schemas/eta_payload"}]}}}},"responses":{"200":{"description":"A successful TSP submission. The job id and status of the optimization are returned.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the request was successful","example":true},"jobId":{"type":"string","description":"The unique identifier for the submitted job","example":"6273380986650624"},"status":{"type":"string","description":"Current status of the job optimization","example":"InProgress"}},"required":["success","jobId","status"]}}}},"204":{"description":"Response to a successful request that won't be returning a body."},"400":{"description":"Bad Request (A validation exception has occurred.)"}}}},"/tsp/eta/jobs/{jobId}":{"get":{"summary":"get the input parameters for a submitted ETA job","description":"This returns the JSON data of a submitted job - prior to optimisation","tags":["ETA"],"security":[{"bearerAuth":["bearer token"]}],"operationId":"etaGetJobInput","parameters":[{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}},{"name":"divisionId","in":"query","required":false,"schema":{"type":"string","default":"default"}}],"responses":{"200":{"description":"A successful result fetched. Input parameters of the submitted job are returned.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the request was successful","example":true},"jobId":{"type":"string","description":"The unique identifier for the job","example":"6273380986650624"},"input":{"allOf":[{},{"$ref":"#/components/schemas/eta_payload"}]}},"required":["success","jobId","input"]}}}},"204":{"description":"Response to a successful request that won't be returning a body."},"400":{"description":"Bad Request (A validation exception has occurred.)"},"401":{"description":"Unauthorized (Invalid authorization credentials.)"},"403":{"description":"When authentication succeeded but authenticated user doesn't have access to the resource"},"404":{"description":"Not Found (The resource you have specified cannot be found)"},"500":{"description":"Internal Error"},"501":{"description":"Not Implemented (The method you have called has not been implemented)"},"503":{"description":"Rate Limit Exceeded"}}}},"/tsp/eta/results/{jobId}":{"get":{"summary":"get an ETA result","description":"This returns the ETA result for a given ETA job ID.","tags":["ETA"],"security":[{"bearerAuth":["bearer token"]}],"operationId":"etaGetResult","parameters":[{"name":"jobId","in":"path","required":true,"schema":{"type":"number"}},{"name":"divisionId","in":"query","required":false,"schema":{"type":"string","default":"default"}}],"responses":{"200":{"description":"This endpoint responds with the data used for optimization.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the request was successful","example":true},"jobId":{"type":"string","description":"The unique identifier for the job","example":"6273380986650624"},"output":{"allOf":[{},{"$ref":"#/components/schemas/eta_response_object"}]}},"required":["success","jobId","input"]}}}},"204":{"description":"Response to a successful request that won't be returning a body."},"400":{"description":"Bad Request (A validation exception has occurred.)"},"401":{"description":"Unauthorized (Invalid authorization credentials.)"},"403":{"description":"When authentication succeeded but authenticated user doesn't have access to the resource"},"404":{"description":"Not Found (The resource you have specified cannot be found)"},"500":{"description":"Internal Error"},"501":{"description":"Not Implemented (The method you have called has not been implemented)"},"503":{"description":"Rate Limit Exceeded"}}}},"/tsp/eveta/jobs/submit":{"post":{"summary":"submit a list of jobs to receive an estimate on arrival/departure times","description":"EVETA = Electric Vehicle Estimated Time of Arrival. Use this endpoint to submit a sequence of jobs to estimate arrival and departure times at each job.","tags":["EVETA"],"security":[{"bearerAuth":[]}],"operationId":"SubmitEVETAJob","requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{},{"$ref":"#/components/schemas/eveta_payload"}]}}}},"responses":{"200":{"description":"A successful EVETA submission. The job id and status of the optimization are returned.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the request was successful","example":true},"jobId":{"type":"string","description":"The unique identifier for the submitted job","example":"6273380986650624"},"status":{"type":"string","description":"Current status of the job optimization","example":"InProgress"}},"required":["success","jobId","status"]}}}},"204":{"description":"Response to a successful request that won't be returning a body."},"400":{"description":"Bad Request (A validation exception has occurred.)"}}}},"/tsp/eveta/jobs/{jobId}":{"get":{"summary":"get the input parameters for a submitted EVETA job","description":"This returns the JSON data of a submitted job - prior to optimisation","tags":["EVETA"],"security":[{"bearerAuth":["bearer token"]}],"operationId":"evetaGetJobInput","parameters":[{"name":"jobId","in":"path","required":true,"schema":{"type":"string"}},{"name":"divisionId","in":"query","required":false,"schema":{"type":"string","default":"default"}}],"responses":{"200":{"description":"A successful result fetched. Input parameters of the submitted job are returned.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the request was successful","example":true},"jobId":{"type":"string","description":"The unique identifier for the job","example":"6273380986650624"},"input":{"allOf":[{},{"$ref":"#/components/schemas/eveta_payload"}]}},"required":["success","jobId","input"]}}}},"204":{"description":"Response to a successful request that won't be returning a body."},"400":{"description":"Bad Request (A validation exception has occurred.)"},"401":{"description":"Unauthorized (Invalid authorization credentials.)"},"403":{"description":"When authentication succeeded but authenticated user doesn't have access to the resource"},"404":{"description":"Not Found (The resource you have specified cannot be found)"},"500":{"description":"Internal Error"},"501":{"description":"Not Implemented (The method you have called has not been implemented)"},"503":{"description":"Rate Limit Exceeded"}}}},"/tsp/eveta/results/{jobId}":{"get":{"summary":"get an EVETA result","description":"This returns the ETA result for a given EVETA job ID.","tags":["EVETA"],"security":[{"bearerAuth":["bearer token"]}],"operationId":"evetaGetResult","parameters":[{"name":"jobId","in":"path","required":true,"schema":{"type":"number"}},{"name":"divisionId","in":"query","required":false,"schema":{"type":"string","default":"default"}}],"responses":{"200":{"description":"This endpoint responds with the data used for optimization.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Indicates whether the request was successful","example":true},"jobId":{"type":"string","description":"The unique identifier for the job","example":"6273380986650624"},"output":{"allOf":[{},{"$ref":"#/components/schemas/eveta_response_object"}]}},"required":["success","jobId","input"]}}}},"204":{"description":"Response to a successful request that won't be returning a body."},"400":{"description":"Bad Request (A validation exception has occurred.)"},"401":{"description":"Unauthorized (Invalid authorization credentials.)"},"403":{"description":"When authentication succeeded but authenticated user doesn't have access to the resource"},"404":{"description":"Not Found (The resource you have specified cannot be found)"},"500":{"description":"Internal Error"},"501":{"description":"Not Implemented (The method you have called has not been implemented)"},"503":{"description":"Rate Limit Exceeded"}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"apiKey","name":"Authorization","in":"header"}},"schemas":{"authentication":{"type":"object","properties":{"email":{"type":"string","example":"smith@gmail.com"},"password":{"type":"string","example":"abc123"}}},"vrphd_customer":{"type":"object","required":["id","location","demands","startTime","endTime","zone"],"properties":{"id":{"type":"string","description":"unique id.","example":"A1468J"},"customerName":{"type":"string","description":"a label for the customer. this field is not used by the algorithm, it is for you to easily find and label your stops","example":"Bob's Burgers"},"location":{"allOf":[{},{"$ref":"#/components/schemas/location"}]},"demands":{"type":"array","items":{"type":"array","items":{"type":"number"}},"description":"helps to constraint the maximum number of customers will be served in one route","example":[1,1]},"startTime":{"type":"string","description":"earliest time the driver can hand in the package to the customer","example":"07:00"},"endTime":{"type":"string","description":"latest time the driver can hand in the package to the customer","example":"15:00"},"zone":{"type":"string","description":"the zone the customer is associated with","example":"Sydney Metro"},"mandatoryVehicles":{"type":"array","items":{"type":"string"},"description":"a list of vehicle IDs the customer must be assigned to. *note* This feature only works if `unique_vehicle_per_zone` is enabled in the metaparameters","example":["vehicle1"]},"customData":{"type":"object","description":"a custom data field that can be used to store any additional information about the customer","properties":{"custom1":{"type":"string","description":"this field in particular can be used to assign custom shapes by passing through \"diamond\" or \"shape\"","example":"custom data 1"},"custom2":{"type":"string","example":"custom data 2"},"custom3":{"type":"string","example":"custom data 3"},"custom4":{"type":"string","example":"custom data 4"}}}}},"pdvrp_customer":{"type":"object","required":["id","location","demands","startTime","endTime","zone"],"properties":{"id":{"type":"string","description":"unique id.","example":"A1468J"},"customerName":{"type":"string","description":"a label for the customer. this field is not used by the algorithm, it is for you to easily find and label your stops","example":"Bob's Burgers"},"type":{"type":"string","description":"the type of customer can be pickup,delivery or shipment","example":"pickup"},"location":{"allOf":[{},{"$ref":"#/components/schemas/location"}]},"demands":{"type":"array","items":{"type":"array","items":{"type":"number"}},"description":"helps to constraint the maximum number of customers will be served in one route","example":[1,4,5,121]},"startTime":{"oneOf":[{"type":"string","example":"07:00"},{"type":"number","example":1704067200}],"description":"earliest time the driver can hand in the package to the customer. Accepts either HH:MM string format or Unix epoch seconds."},"endTime":{"oneOf":[{"type":"string","example":"15:00"},{"type":"number","example":1704096000}],"description":"latest time the driver can hand in the package to the customer. Accepts either HH:MM string format or Unix epoch seconds."},"serviceTime":{"description":"amount of time the driver will spend at each stop (in seconds)","type":"number","example":120},"zone":{"type":"string","example":"Sydney Metro"}}},"da_customer":{"type":"object","required":["id","location","demands"],"properties":{"id":{"type":"string","description":"unique id.","example":"A1468J"},"customerName":{"type":"string","description":"a label for the customer. this field is not used by the algorithm, it is for you to easily find and label your stops","example":"Bob's Burgers"},"type":{"type":"string","description":"the type of customer can be pickup, delivery or shipment","example":"pickup"},"location":{"allOf":[{},{"$ref":"#/components/schemas/location"}]},"demands":{"type":"array","items":{"type":"array","items":{"type":"number"}},"description":"helps to constraint the maximum number of customers will be served in one route","example":[1,4,5,121]},"startTime":{"type":"string","description":"earliest time the driver can hand in the package to the customer","example":"07:00"},"endTime":{"type":"string","description":"latest time the driver can hand in the package to the customer","example":"15:00"},"serviceTime":{"description":"amount of time the driver will spend at each stop (in seconds)","type":"number","example":120},"zone":{"type":"string","example":"Sydney Metro"}}},"depot":{"type":"object","required":["id","location"],"properties":{"id":{"type":"string","example":"SydneyCBD"},"location":{"allOf":[{},{"$ref":"#/components/schemas/location"}]}}},"pdvrp_depot":{"type":"object","required":["id","location"],"properties":{"id":{"type":"string","example":"warehouse_1"},"location":{"allOf":[{},{"$ref":"#/components/schemas/location"}]},"zone":{"type":"string","description":"the zone the customer is associated with","example":"Sydney Metro"},"earliest_departure_time":{"type":"string","example":"05:00"},"latest_arrival_time":{"type":"string","example":"19:00"}}},"da_depot":{"type":"object","required":["id","location","max_capacities"],"properties":{"id":{"type":"string","example":"warehouse_1"},"location":{"allOf":[{},{"$ref":"#/components/schemas/location"}]},"zone":{"type":"string","description":"the zone the customer is associated with","example":"Sydney Metro"},"max_capacities":{"type":"array","items":{"type":"number"},"example":[100,200,120,10000]},"min_capacities":{"type":"array","description":"this is an optional parameter that will default to zeros if not provided","items":{"type":"number"},"example":[0,20,20,0]},"earliest_departure_time":{"type":"string","example":"05:00"},"latest_arrival_time":{"type":"string","example":"19:00"}}},"pdvrp_vehicle_types":{"type":"object","required":["id","capacities","depot","number_of_vehicles","return_to_depot","cost_to_add_an_vehicle","driving_cost_per_second","driving_cost_per_meter","waiting_cost_per_second"],"properties":{"id":{"type":"string","example":"van_1"},"zone":{"type":"string","example":"Sydney Metro"},"depot":{"type":"string","example":"warehouse_1"},"capacities":{"type":"array","items":{"type":"number"},"example":[100,200,120,10000]},"number_of_vehicles":{"type":"number","example":3},"return_to_depot":{"type":"boolean","example":true},"cost_to_add_an_vehicle":{"type":"number","example":1},"waiting_cost_per_second":{"type":"number","example":1},"driving_cost_per_second":{"type":"number","example":1},"driving_cost_per_meter":{"type":"number","example":1}}},"location":{"type":"object","required":["lat","long"],"properties":{"address":{"type":"string","example":"Centerpoint tower, Sydney, NSW, 2000"},"lat":{"type":"number","format":"double","example":-33.902797,"description":"The latitude coordinate"},"long":{"type":"number","format":"double","example":151.1953028,"description":"The longitude coordinate"}}},"coordinate":{"type":"object","required":["lat","long"],"properties":{"lat":{"type":"number","format":"double","example":-33.902797,"description":"The latitude coordinate"},"long":{"type":"number","format":"double","example":151.1953028,"description":"The longitude coordinate"}}},"shift":{"type":"object","required":["id","start","end","customerServiceTime"],"properties":{"id":{"type":"string","example":"night"},"customerServiceTime":{"type":"number","example":120},"start":{"type":"string","example":"08:00"},"end":{"type":"string","example":"17:00"},"respect_shift_start_time":{"type":"boolean","example":false},"respect_shift_end_time":{"type":"boolean","example":false}}},"vrphd_meta_parameters":{"type":"object","required":["comment","special_time_windows","target_trip_duration","workflow"],"properties":{"target_trip_duration":{"type":"number","description":"target trip duration in hours","example":9},"special_time_windows":{"type":"array","items":{"type":"string","example":"0:00-17:00"}},"comment":{"type":"string","example":"this label will appear in the front end"},"workflow":{"type":"string","example":"DELAYED"},"combined_zones":{"type":"array","items":{"example":["Sydney Metro","Regional NSW"]},"example":[]},"transport_mode":{"type":"string","example":"DRIVING"},"return_to_depot":{"type":"boolean","example":true},"unique_vehicle_per_zone":{"type":"boolean","example":false},"neighbour_distance_threshold":{"type":"number","description":"Radius (in metres) for Radius Routing. The maximum distance between two customers to be considered neighbours — the driver will park once and serve all neighbours before moving on. Radius Routing is always enabled for VRPHD.","example":30}}},"pdvrp_meta_parameters":{"type":"object","required":["vehicle_capacity_labels","customer_demand_labels","transport_mode","target_trip_duration","target_trip_distance","max_algorithm_execution_time"],"properties":{"vehicle_capacity_labels":{"type":"array","items":{"type":"string"},"example":["# of customers","# of packages","total weight","total volume"]},"customer_demand_labels":{"type":"array","items":{"type":"string"},"example":["# of vehicles","# of packages","total weight","total volume"]},"target_trip_duration":{"type":"number","description":"target trip duration in hours","example":9},"target_trip_distance":{"type":"number","description":"target trip duration in kilometres","example":120},"comment":{"type":"string","example":"this label will appear in the front end"},"workflow":{"type":"string","example":"DELAYED"},"transport_mode":{"type":"string","example":"DRIVING"},"combined_zones":{"type":"array","items":{"example":["City Metro","Regional A"]},"example":[]},"avoid_toll_road":{"type":"boolean","example":false},"get_polyline_and_toll_cost":{"type":"boolean","example":false},"max_algorithm_execution_time":{"type":"number","example":120},"force_delivery_before_pickup":{"type":"boolean","example":false}}},"da_meta_parameters":{"type":"object","required":["depot_boundary","customer_demand_labels","depot_capacity_labels","workflow","transport_mode"],"properties":{"depot_capacity_labels":{"type":"array","items":{"type":"string"},"example":["# of customers","# of packages","total weight","total volume"]},"customer_demand_labels":{"type":"array","items":{"type":"string"},"example":["# of depots","# of packages","total weight","total volume"]},"depot_boundary":{"type":"number","description":"TODO - write copy for this","example":2000},"workflow":{"type":"string","example":"DELAYED"},"comment":{"type":"string","example":"this label will appear in the front end"},"transport_mode":{"type":"string","example":"DRIVING"},"combined_zones":{"type":"array","items":{"example":["City Metro","Regional A"]},"example":[]}}},"geo_splitter":{"type":"object","required":["id","name","source"],"properties":{"id":{"type":"string","example":"1"},"name":{"type":"string","example":"Port Hacking - from Swagger"},"source":{"type":"string","example":"custom"},"coordinates":{"type":"array","items":{"allOf":[{},{"$ref":"#/components/schemas/coordinate"}]},"example":[{"lat":-33.853,"long":151.238},{"lat":-33.856,"long":151.222}]},"zone":{"type":"string","description":"the zone the geo_splitter will be applied to","example":"Sydney Metro"}}},"geo_splitter_response":{"type":"object","properties":{"coordinates":{"type":"array","items":{"allOf":[{},{"$ref":"#/components/schemas/coordinate"}]},"example":[{"lat":-34.073217099979594,"long":151.16698412100146},{"long":151.13954492536578,"lat":-34.07605811459225},{"lat":-34.073217099979594,"long":151.12340422205108},{"lat":-34.07572388252388,"long":151.10988638302518},{"lat":-34.06135065605653,"long":151.10464065444762},{"lat":-34.05600185636146,"long":151.09576326762436}]},"id":{"type":"string","example":"6384576536510464"},"country":{"type":"string","example":"Australia"},"name":{"type":"string","example":"Port Hacking - from Swagger"},"orgName":{"type":"string","example":"Adiona"},"orgId":{"type":"string","example":"adiona"},"isPublic":{"type":"boolean","example":true},"stateEquivalent":{"type":"string","example":"NSW"},"localAreaEquivalent":{"type":"string","example":"Sydney"}}},"geo_splitter_payload":{"type":"object","required":["name","isPublic","localAreaEquivalent","stateEquivalent","country","coordinates"],"properties":{"divisionId":{"type":"string","example":"default"},"coordinates":{"type":"array","items":{"allOf":[{},{"$ref":"#/components/schemas/coordinate"}]},"example":[{"lat":-34.073217099979594,"long":151.16698412100146},{"long":151.13954492536578,"lat":-34.07605811459225},{"lat":-34.073217099979594,"long":151.12340422205108},{"lat":-34.07572388252388,"long":151.10988638302518},{"lat":-34.06135065605653,"long":151.10464065444762},{"lat":-34.05600185636146,"long":151.09576326762436}]},"country":{"type":"string","example":"Australia"},"name":{"type":"string","example":"Port Hacking - from Swagger"},"isPublic":{"type":"boolean","example":false},"stateEquivalent":{"type":"string","example":"NSW"},"localAreaEquivalent":{"type":"string","example":"Sydney"}}},"job_payload":{"type":"object","required":["meta_parameters","customers","depots","shifts","vehicles"],"properties":{"divisionId":{"type":"string","default":"default"},"meta_parameters":{"allOf":[{},{"$ref":"#/components/schemas/vrphd_meta_parameters"}]},"customers":{"type":"array","items":{"allOf":[{},{"$ref":"#/components/schemas/vrphd_customer"}]}},"depots":{"type":"array","items":{"allOf":[{},{"$ref":"#/components/schemas/depot"}]}},"shifts":{"type":"array","items":{"allOf":[{},{"$ref":"#/components/schemas/shift"}]}},"vehicles":{"type":"array","items":{"allOf":[{},{"$ref":"#/components/schemas/vehicle"}]}}}},"job_response":{"type":"object","properties":{"success":{"type":"boolean","example":true},"jobId":{"type":"number","example":5707820058017792},"job":{"allOf":[{},{"$ref":"#/components/schemas/result"}]}}},"pdvrp_job_response":{"type":"object","properties":{"success":{"type":"boolean","example":true},"jobId":{"type":"number","example":5707820058017792},"job":{"allOf":[{},{"$ref":"#/components/schemas/pdvrp_result"}]}}},"da_job_response":{"type":"object","properties":{"success":{"type":"boolean","example":true},"jobId":{"type":"number","example":5707820058017792},"job":{"allOf":[{},{"$ref":"#/components/schemas/da_result"}]}}},"job_pdvrp_payload":{"type":"object","required":["meta_parameters","customers","depots","vehicle_types"],"properties":{"divisionId":{"type":"string","default":"default"},"meta_parameters":{"allOf":[{},{"$ref":"#/components/schemas/pdvrp_meta_parameters"}]},"customers":{"type":"array","items":{"allOf":[{},{"$ref":"#/components/schemas/pdvrp_customer"}]}},"depots":{"type":"array","items":{"allOf":[{},{"$ref":"#/components/schemas/pdvrp_depot"}]}},"vehicle_types":{"type":"array","items":{"allOf":[{},{"$ref":"#/components/schemas/pdvrp_vehicle_types"}]}}}},"job_da_payload":{"type":"object","required":["meta_parameters","customers","depots","vehicle_types"],"properties":{"divisionId":{"type":"string","default":"default"},"meta_parameters":{"allOf":[{},{"$ref":"#/components/schemas/da_meta_parameters"}]},"customers":{"type":"array","items":{"allOf":[{},{"$ref":"#/components/schemas/da_customer"}]}},"depots":{"type":"array","items":{"allOf":[{},{"$ref":"#/components/schemas/da_depot"}]}},"geo_splitters":{"type":"array","items":{"allOf":[{},{"$ref":"#/components/schemas/geo_splitter"}]}}}},"result":{"type":"object","properties":{"scenarioId":{"type":"number","example":5707820058017792},"model":{"type":"string","example":"VRPHD"},"organizationId":{"type":"string","example":"adiona"},"detail":{"type":"string","example":"if there was an error optimizing your job, it will display here"},"status":{"type":"string","example":"Synced"},"comment":{"type":"string","example":"JB test"},"version":{"type":"string","example":"sync"},"shifts":{"type":"array","items":{"allOf":[{},{"$ref":"#/components/schemas/shift"}]}},"customers":{"type":"array","items":{"allOf":[{},{"$ref":"#/components/schemas/vrphd_customer"}]}},"zones":{"type":"array","items":{"type":"string","example":"Melbourne Metro"}},"timestamp":{"type":"number","example":1640949328825},"scenario":{"type":"object"}}},"pdvrp_result":{"type":"object","properties":{"model":{"type":"string","example":"PDVRP"},"depots":{"type":"array","items":{"allOf":[{},{"$ref":"#/components/schemas/pdvrp_depot"}]}},"detail":{"type":"string","example":"if there was an error optimizing your job, it will display here"},"meta_parameters":{"allOf":[{},{"$ref":"#/components/schemas/pdvrp_meta_parameters"}]},"status":{"type":"string","example":"Synced"},"comment":{"type":"string","example":"JB test"},"success":{"type":"boolean","example":true},"customers":{"type":"object","properties":{"A1468J":{"allOf":[{},{"$ref":"#/components/schemas/pdvrp_customer"}]}}},"vehicle_types":{"type":"array","items":{"allOf":[{},{"$ref":"#/components/schemas/pdvrp_vehicle_types"}]}},"zones":{"type":"array","items":{"type":"string","example":"Melbourne Metro"}},"timestamp":{"type":"number","example":1640949328825},"scenario":{"type":"object"}}},"da_result":{"type":"object","properties":{"scenarioId":{"type":"number","example":5707820058017792},"model":{"type":"string","example":"PDVRP"},"organizationId":{"type":"string","example":"adiona"},"depots":{"type":"object","properties":{"h1":{"allOf":[{},{"$ref":"#/components/schemas/da_depot"}]}}},"detail":{"type":"string","example":"if there was an error optimizing your job, it will display here"},"meta_parameters":{"allOf":[{},{"$ref":"#/components/schemas/da_meta_parameters"}]},"status":{"type":"string","example":"Synced"},"comment":{"type":"string","example":"JB test"},"version":{"type":"string","example":"original"},"success":{"type":"boolean","example":true},"customers":{"type":"object","properties":{"A1468J":{"allOf":[{},{"$ref":"#/components/schemas/da_customer"}]}}},"zones":{"type":"array","items":{"type":"string","example":"Melbourne Metro"}},"timestamp":{"type":"number","example":1640949328825}}},"vehicle":{"type":"object","required":["id","available"],"properties":{"id":{"type":"string","example":"vehicle1"},"available":{"type":"object","properties":{"night":{"type":"object","properties":{"capacities":{"type":"array","example":[100,90],"items":{"type":"number"}},"depots":{"type":"array","example":["SydneyCBD"],"items":{"type":"string"}},"target_trip_duration":{"type":"number","example":8}}}}},"zone":{"type":"string","example":"Sydney Metro"},"transport_mode":{"type":"string","example":"DRIVING"}}},"eta_response_object":{"type":"object","properties":{"status":{"type":"string","example":"InProgress"},"message":{"type":"string","example":"message"},"submissionTime":{"type":"number","example":1681965459000},"submittedBy":{"type":"string","example":"userId"},"finishTime":{"type":"number","example":1681965459300},"sequence":{"allOf":[{},{"$ref":"#/components/schemas/eta_sequence"}]}}},"eta_sequence":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"arrivalTime":{"type":"number"},"departureTime":{"type":"number"},"cumulativeDistance":{"type":"number"},"usedServiceTime":{"type":"number"},"violationTime":{"type":"number"}},"example":[{"id":"start","arrivalTime":-1,"departureTime":1681965459,"cumulativeDistance":0,"usedServiceTime":0,"violationTime":0},{"id":"stopId1","arrivalTime":1681965459,"departureTime":1681965459,"accumulativeDistance":100,"usedServiceTime":0,"violationTime":0}]}},"eta_payload":{"type":"object","required":["transportMode","tripStartLocation","stops","tripStartTime"],"properties":{"divisionId":{"type":"string","default":"default"},"transportMode":{"type":"string","example":"DRIVING"},"tripStartLocation":{"allOf":[{},{"$ref":"#/components/schemas/coordinate"}]},"tripStartTime":{"type":"number","example":4113316800},"trafficConditionQueryTime":{"type":"number","example":9999999999},"stops":{"allOf":[{},{"$ref":"#/components/schemas/eta_stops_sequence"}]}}},"eta_stops_sequence":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"}}},"example":[{"id":"stopId1","location":{"lat":-33.8767731862454,"long":151.21054796936681},"serviceTime":120},{"id":"stopId2","location":{"lat":-33.88532394938011,"long":151.21088784474406},"serviceTime":120},{"id":"stopId3","location":{"lat":-33.86496819895893,"long":151.20543288470824},"serviceTime":120},{"id":"stopId4","location":{"lat":-33.88487151399892,"long":151.19787706936674},"serviceTime":120},{"id":"stopId5","location":{"lat":-33.92121353623977,"long":151.18515402703858},"serviceTime":120}]},"tsp_submit_payload":{"type":"object","required":["routingParameters","vehicle","stops"],"properties":{"divisionId":{"type":"string","default":"default"},"routingParameters":{"allOf":[{},{"$ref":"#/components/schemas/tsp_routingParameters"}]},"algorithmParameters":{"type":"object","properties":{"maximumAlgorithmExecutionTime":{"type":"number","example":200,"default":100}}},"vehicleCapacityLabels":{"type":"array","items":{"type":"string"},"example":["label1","label2"]},"stopDemandLabels":{"type":"array","items":{"type":"string"},"example":["label1","label2"]},"vehicle":{"allOf":[{},{"$ref":"#/components/schemas/tsp_vehicle_object"}]},"stops":{"allOf":[{},{"$ref":"#/components/schemas/tsp_stops_object_array"}]},"comment":{"type":"string","example":"Sydney Metro"}}},"tsp_stops_object_array":{"type":"array","required":["id","type","demands","location","startTime","endTime","serviceTime"],"items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"demands":{"type":"array","items":{"type":"number"}},"stopName":{"type":"string","default":""},"location":{"type":"object","properties":{"lat":{"type":"number"},"long":{"type":"number"}}},"startTime":{"type":"number"},"endTime":{"type":"number"},"serviceTime":{"type":"number"}}},"example":[{"id":"stopId1","type":"pickup","demands":[4,15],"stopName":"Marrickville","location":{"lat":-33.91259354392469,"long":151.15632333676018},"startTime":4113316800,"endTime":4113378000,"serviceTime":120},{"id":"stopId2","type":"delivery","demands":[10,4],"stopName":"Surry Hills","location":{"lat":-33.885718707638425,"long":151.21500346889783},"startTime":4113316800,"endTime":4113378000,"serviceTime":120}]},"tsp_vehicle_object":{"type":"object","required":["id","capacities","startPoint","transportMode"],"properties":{"id":{"type":"string","example":"dummy vehicle"},"transportMode":{"type":"string","example":"DRIVING"},"capacities":{"type":"array","items":{"type":"number"},"example":[100,150]},"startPoint":{"allOf":[{},{"$ref":"#/components/schemas/tsp_startpoint_object"}]},"waitingCostPerSecond":{"type":"number","example":0},"drivingCostPerSecond":{"type":"number","example":1},"drivingCostPerMeter":{"type":"number","example":0},"roadLimitParams":{"type":"object","properties":{"height":{"type":"number","example":430,"maximum":5000,"minimum":0},"length":{"type":"number","example":1900,"maximum":30000,"minimum":0},"speedCap":{"type":"number","example":31,"maximum":70,"minimum":0}}}}},"tsp_startpoint_object":{"type":"object","properties":{"id":{"type":"string","example":"depot"},"location":{"allOf":[{},{"$ref":"#/components/schemas/coordinate"}]},"earliestDepartureTime":{"type":"number","example":4113316800},"latestArrivalTime":{"type":"number","example":4113378000}}},"tsp_routingParameters":{"type":"object","required":["trafficConditionQueryTime"],"properties":{"trafficConditionQueryTime":{"type":"number","example":9999999999},"maximumTripDuration":{"type":"number","example":8.5,"description":"default infinity"},"maximumTripDistance":{"type":"number","example":215.5,"description":"default infinity"},"serveFirstStopAt":{"type":"number","example":4113327600},"idOfFirstServicedStop":{"type":"string","example":"stopId2"},"idOfLastServicedStop":{"type":"string","example":"stopId1"},"speedFactor":{"type":"number","example":1},"ignoreStopTimewindows":{"type":"boolean","example":false,"default":false},"ignoreVehicleCapacity":{"type":"boolean","example":false,"default":false},"avoidTollRoad":{"type":"boolean","example":false,"default":false},"doSubClustering":{"type":"boolean","example":false,"default":false,"description":"Enable Radius Routing. When true, nearby customers are grouped into clusters so the driver parks once and serves all neighbours before moving on. Use with neighbourDistanceThreshold to define the cluster radius."},"neighbourDistanceThreshold":{"type":"number","example":50,"description":"Radius (in metres) for Radius Routing. The maximum distance between two customers for them to be considered neighbours and grouped into the same cluster. Only applies when doSubClustering is true."}}},"eta_results_sequence":{"type":"array","required":["id","arrivalTime","departureTime","usedServiceTime","cumulativeDistance","violationTime"],"items":{"type":"object","properties":{"id":{"type":"string"},"arrivalTime":{"type":"number"},"departureTime":{"type":"number"},"cumulativeDistance":{"type":"number"},"usedServiceTime":{"type":"number"},"violationTime":{"type":"number"}}},"example":[{"id":"start","arrivalTime":-1,"departureTime":1681965459,"cumulativeDistance":0,"usedServiceTime":120,"violationTime":0},{"id":"stopId1","arrivalTime":1681965459,"departureTime":1681965459,"cumulativeDistance":100,"usedServiceTime":120,"violationTime":0},{"id":"stopId2","arrivalTime":1681965459,"departureTime":1681965459,"cumulativeDistance":200,"usedServiceTime":120,"violationTime":0},{"id":"end","arrivalTime":1681965460,"departureTime":-1,"cumulativeDistance":600,"usedServiceTime":0,"violationTime":0}]},"eveta_payload":{"type":"object","required":["stops","tripStartTime","trafficConditionQueryTime","vehicle","tripStartLocation"],"properties":{"divisionId":{"type":"string","default":"default"},"tripStartLocation":{"allOf":[{},{"$ref":"#/components/schemas/coordinate"}]},"tripStartTime":{"type":"number","example":4113356400},"trafficConditionQueryTime":{"type":"number","example":9999999999},"vehicle":{"allOf":[{},{"$ref":"#/components/schemas/eveta_vehicle"}]},"stops":{"allOf":[{},{"$ref":"#/components/schemas/eveta_stops_sequence"}]}}},"eveta_vehicle":{"type":"object","properties":{"id":{"type":"string"},"transportMode":{"type":"string"},"initialChargeLevel":{"type":"number"},"batteryCapacity":{"type":"number"},"airDensity":{"type":"number"},"weatherTemperature":{"type":"number"},"curbWeight":{"type":"number"},"frontSurfaceArea":{"type":"number"},"dragCoefficient":{"type":"number"},"rollingResistanceCoefficient":{"type":"number"},"speedCoefficient":{"type":"number"},"speedSquareCoefficient":{"type":"number"},"speedCubeCoefficient":{"type":"number"},"drivetrainAtRestCoefficient":{"type":"number"},"airconPower":{"type":"number"}},"example":{"id":"dummy vehicle","transportMode":"DRIVING","initialChargeLevel":100,"batteryCapacity":62,"airDensity":1.225,"weatherTemperature":15,"curbWeight":3020,"frontSurfaceArea":5.369,"dragCoefficient":0.4,"rollingResistanceCoefficient":0.01,"speedCoefficient":65.5,"speedSquareCoefficient":0.25,"speedCubeCoefficient":0.045,"drivetrainAtRestCoefficient":500,"airconPower":3000}},"eveta_stops_sequence":{"type":"array","required":["id","arrivalTime","departureTime","usedServiceTime","cumulativeDistance","violationTime"],"items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"},"location":{"allOf":[{},{"$ref":"#/components/schemas/coordinate"}]},"serviceTime":{"type":"number"},"demands":{"type":"array","items":{"type":"number"}}}},"example":[{"id":"stopId1","type":"pickup","location":{"lat":-33.864950381511846,"long":151.20535778286026},"serviceTime":120,"demands":[10]},{"id":"stopId2","type":"delivery","location":{"lat":-33.884853700706536,"long":151.19786634053133},"serviceTime":120,"demands":[10]},{"id":"stopId3","type":"delivery","location":{"lat":-33.882624290726774,"long":151.21771256936697},"serviceTime":120,"demands":[10]},{"id":"stopId4","type":"delivery","location":{"lat":-33.8767642787543,"long":151.21060161354396},"serviceTime":120,"demands":[10]},{"id":"stopId5","type":"delivery","location":{"lat":-33.8714877249549,"long":151.21344800880038},"serviceTime":120,"demands":[10]}]},"eveta_response_object":{"type":"object","properties":{"success":{"type":"boolean","example":true},"jobId":{"type":"string","example":4838030938472448},"output":{"allOf":[{},{"$ref":"#/components/schemas/eveta_output_object"}]}}},"eveta_output_object":{"type":"object","properties":{"submittedBy":{"type":"string","example":"WIHq3n69XPazG6XRA7NuIyBdJoV2"},"finishTime":{"type":"number","example":1696902895794},"message":{"type":"string","example":""},"submissionTime":{"type":"number","example":1696902891482},"status":{"type":"string","example":"Finished"},"sequence":{"allOf":[{},{"$ref":"#/components/schemas/eveta_sequence_object"}]},"summary":{"allOf":[{},{"$ref":"#/components/schemas/eveta_summary_object"}]}}},"eveta_sequence_object":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"arrivalTime":{"type":"number"},"departureTime":{"type":"number"},"usedServiceTime":{"type":"number"},"cumulativeDistance":{"type":"number"},"violationTime":{"type":"number"},"batteryPercentage":{"type":"number"},"energyConsumption":{"type":"number"}}},"example":[{"id":"start","arrivalTime":-1,"departureTime":1705102073,"usedServiceTime":0,"cumulativeDistance":0,"violationTime":0,"batteryPercentage":100,"energyConsumption":0},{"id":"stopId1","arrivalTime":1705102728,"departureTime":1705102848,"usedServiceTime":120,"cumulativeDistance":3537,"violationTime":0,"polyline":"B2Ftjg0gC6g-sgJwW-CpFAwCrEA8B3DAwCzFTwCnGAoBjDA8B3DT8BrEAoB7BAkDnGA4DvHA8B_EAwCzFAsEzFAzKnLA3IrJAvMrOUjSzUAzFnGUrE_EA3D_EUjDrEAvCrEAvC_EAvCnGA7B_EUvCvHAnB3DAnBrEA7BzFA7B3DAjDrEAjD3DA7GvHAzFzFAnGnGU3DrEA_EnGAnGjIArEnGAjD_EAjDnGA3DrJTTvCAjNgFAvgBwMU_EwCUrEkDArEsEAoGwCAgFwCU0FkDA8G4DA8G4DAoG4DT8GsEAsJ0FA4DwCA0F4DT0F4DAsEwCAkD8BA4S8LToG4DAsEwCAkDoBAsEoBA4DUAsEUAwCwHA8BgFTwCoGAwCgFAwCsEAkDsEA4DgFTsEgFA0FoGAkS0UTwMsOT4IsJA0KoLAgKwMT8GkIA0F8GTgF0FAsEsEA0FgFA0FsEToG4DA8GkDA8GwCAkIwCT8G8BAkSgFTkXoGUoV0FU8f4I8BkwB4NwC8G3mBvCU3DA4DjXnBwC3NAoG7aToG3hBU8BzKAoB3IAoBnLAUnGAUrJAA7GAAnGTA7GAAnGAU7GAU3DA8BzFTwCnGTsEjIT4DrJTkD7GA4DTAkDTA4DAAsEUA4IoBAgyB4IUgFoBAgFoBAsETA4IoBAgFUUoGUAkIAAkNnBA4DnBAsE7BAsEvCAoG3DA0F3DA0PzKAkIzFAoV_OA0F3DA0F_EToG3DTwCnBT4D7BUgFjDUoG3D0F8BTA8BnBUgFvCUsE7BAgF7BUgFnBA4DTA4DAAsEAA4DUAoGoBTsEoBA0F8BA8GwCAkSoGToasJTkSoGA8GwCT0F8BA0F8BA0F8BTsEoBAwRsETwH8BT4I8BTkIoBTkIUTwHUA8GUAoGUA8GATkIAAkN3DA8G7BTsJvCA4ITA0KvCA0F7BAwCTAkI_EUsnBzFoBgK7BAk6BzFoBwHwCToB4IUTkIAU4IUwCsYA8Bsd8BUgKUU8GUoB4NUwCsd8BoBoQoBsgCvHUgFTA0KnBAgUvCAgC8doB","batteryPercentage":97.72,"energyConsumption":1.41},{"id":"stopId2","arrivalTime":1705103344,"departureTime":1705103464,"usedServiceTime":120,"cumulativeDistance":6888,"violationTime":0,"polyline":"B2Fj2-ygCw_6sgJge_B7dnB7BvbjDnBvR7BjS8BArYkDArTwCU7LoBA3DAAjXwCUnB3NTT7GTT_JT7Brd7BrJ8BUj6B8GoB3IoBT7awCT7GUAzKUAjDUA7LAAr5C0KA7VwCA3InGAjDnGAvC7GAjDnGArE7GA_EjDA_EvCTnGnBTvHAA3IoBTnL8BTnVgFnB3NkDTrEAA_JvCTzUzFArJrEAjIrEAvH_EU7BnBA_ErEUvH3IUrEzFU3DzFUjDnGUrErJU_EnLUnB3DA7BrEU_E3NU3DrOU_EzUUrEzeoB7B7LAjD_YUTnLA7B7QAvC_OAnGnpBU3DrTTnBrEAvCrJAjDjNA7B7GA3DrOArEjSTvHnfUjDoBA_E8BA3D8BAjIsEA3NkIAvgB4SAvW4NUvRgKAjhBsTAjSgKTrYsOnBrY4NT_nBkXT3NkITrOgKTvoC8pBjD_ToLTzyBsdTvHsEAjhB0UoB3_B4mBwC_YsOoB7QkIUrE3NAnGjXU7BjIA7B_JAT_JTnBrTAA7VTnBjmBTT3NTnBrdnBnBzoBnBTzUTAvMTT_iBAAnGA3IUAzFUAzFUArEAA1KgBA","batteryPercentage":96.03,"energyConsumption":1.05},{"id":"stopId3","arrivalTime":1705104016,"departureTime":1705104136,"usedServiceTime":120,"cumulativeDistance":10283,"violationTime":0,"polyline":"B2Fhtl0gCkvrsgJkShDIA_EUAjc8BoB_JoBUjc3IA7GjDUnfzKUrY3IAvRnGUnB8GAUkSAUoLUzewCUzPoBnBrT8BAnBwHAjIs2BoBjDsTUnBsJA_EsnBoB7B0KU7BoLA7BkNU7BwMoBvC4SoBjDoQoBvCwMUnBoGUnBgFAnBgFAnB8GATsEA7BoLAnBoGU7B4IATgFAT0FUTgFATkIUTwHAToGUTgFUTgFATgFU_E8fA7BkNA7B4NA7B4NA7B4NAvCgUAvCwRT7BsOAnBsJAnBkIAnG8uBAjDkcU7B4NUnBwHAnBoGATsEATsEUnBgKUTsEATgFATgFATgFUnB8GAnB0FA7BwHU7BsEAjD4IU_EwMUzU41BU3IkXTvMgjBnBjIkXTzFkNT7QopBTvCoGAvC8GAvCkIAnBoGATsEATsEAvC8QUjDsTAnB0KUnBwHA3DwbT3DsYTjDkXnBTsEAjDgZA3DwbU_EsiBoB_EkmBAzFwqBTsTwCAoL8BAkI8BA8QkDUgPkDAsOkDAsOkDAof8GUoGoBAoGoBAgFUAwHoBA0K8BAk1BoLoBsiB8GUw-BwMwCoQkDU0FoBAsJ8BUsJoBUsEUUsEUAwHoBU8G8BAwH8BU0FoBUkXgFoBoLwCU8G8BAgF8BAsEoBAoG8BAoG8BU8G8BA4I8BU0KwCAsJ8BU8L8BToLwCT8Q4DT4I8BAoGoBT0FoBAA7GATjIAnBrJA7BvMUkInBAkNvCTsOjDTwHnBA","batteryPercentage":93.72,"energyConsumption":1.43},{"id":"stopId4","arrivalTime":1705104381,"departureTime":1705104501,"usedServiceTime":120,"cumulativeDistance":11548,"violationTime":0,"polyline":"B2Fj_g0gC8sztgJ8uBAAA4czFA8L7BTgK7BArJ4XTrE0KA_J8aA_E4NAwHwCT0F8BA0KkDAgF8BAgFwCT8G4DAsEjIU4DvHAkDvHAkD7GAkDvHAoLjcAkIvRAUnBAwHzPUkDvHUkDjIAwCvHAwC3IUoBjDAoBvCAUnBA8BjDA8BvCA4D3DA8pBnzB7BsnBjwBvCoL3NTkNnQnB8avgBnB8LrOT4DrEAkI_JTkD3DA0P3STsEzFA4SvWTsJnLA0FvHAkDrEAkD_EAkDzFAwC7GA8BnGAUzFA8BjNTUzKTA_JTAvHAUrJTU3NTU_TTGrJA","batteryPercentage":93.14,"energyConsumption":0.36},{"id":"stopId5","arrivalTime":1705104717,"departureTime":1705104837,"usedServiceTime":120,"cumulativeDistance":12729,"violationTime":0,"polyline":"B2F111zgCwmltgJkhBFsJATgUUT4NUTsJUAwHAAgKUT0KU7BkNU4IgFAsE8BA4DoBA0FoBTkIwCA4IUAoGUTwHUAkIUT4XkDA4DUA0KoBAsO8BT4N8BA8QwCTgUkDT0P8BT8LoBTwCAA8GAAT4DAT4DAnBoGTnBgFAnBgFTT4DATsET7B4NnBnBgKT7BkNnB7B0KTnBkITnBkITnB8GAnBwHT4DTAkDnBAkNAU0FAAsEUAkIsETkNsJT4NoLTkIsEAwHwCT4IsEAwH0FT8LkNTsJ8LTwH0KAgF3IU8B3DA8B3DU8BnGAkDzKoBoB3DA8BjDU0F3IoB7L3NA3DrEU3DzFAvCzFUTrJUU3IU8B3NU8BvRUsJUU8GoBAoGwCAoBIA","batteryPercentage":92.37,"energyConsumption":0.48}]},"eveta_summary_object":{"type":"object","properties":{"drivingTime":{"type":"number"},"waitingTime":{"type":"number"},"violationTime":{"type":"number"},"serviceTime":{"type":"number"},"totalTime":{"type":"number"},"drivingDistance":{"type":"number"},"cost":{"type":"string"}},"example":{"drivingTime":"2164,","waitingTime":"0,","violationTime":"0,","serviceTime":"600,","totalTime":"2764,","drivingDistance":"12729,","cost":"20"}}}}}