Skip to main content
Version: 1.0.0

SWAT Optimization API

API for route optimization. Stateless model. Provides direct access to SWAT solver capabilities.

This API is to solve the Vehicle Routing Problem for PDPTW and CVRPTW models.

PDPTW: Pickup and Delivery with Time-Windows

CVRPTW: Capacitated Vehicle Routing Problem with Time-Windows

This API does not introduce any persistent models. Everything required for the calculation is passed in the request for calculation (stateless API style).

Logistics and Passenger Transportation This API is suitable for logistics-related VRP problems and passenger transportation. Passenger-related tasks have specific features like waypoint optimization. In logistics, waypoint optimization may also be suitable, for example, if you need to resolve a task when you have a choice to pick up food from various possible stores or warehouses.

Input and Output Parameters The request contains all the data required for calculations, e.g., nodes, vehicles, scheduler engine settings, etc.

The response contains node-to-vehicle assignments, a list of assigned bookings, and a list of rejected bookings (details below).

Nodes in the request and nodes in the response can be correlated using Node.uid = ScheduledNode.uid.

Depending on calculations_mode, the result will be available either immediately or as the result of a separate transaction, where the first transaction will result in a job_id. The result can be accessed later using this job_id.

"Transit stop" or "Stop" in logistics could mean a shop, warehouse, or parking location. In passenger transport, it could mean a bus stop or taxi stand. Transit stop ID or stop ID is the ID code to identify those locations.

All date-time fields are in ISO 8601 format.

Authentication

Security Scheme Type:

http

HTTP Authorization Scheme:

basic

Contact

SWAT Mobility API team: apiteam@swatmobility.com

URL: https://dev.swatmobility.com