SmartRouting Backend
Web API that plans collection tours for recycling containers with Google OR-Tools and a self-hosted Valhalla instance, minimising CO2e emissions.
The SmartRouting Backend is a web API (ASP.NET Core, .NET 8) for planning collection tours for recycling containers, for example for waste glass. It answers which containers a vehicle should visit in which order, and when and where it unloads in between.
Planning treats the task as a capacitated vehicle routing problem with intermediate facilities. The objective is the CO2e emissions of the tour; the shift duration is a constraint. The optimiser chooses the best unloading site for each vehicle load and takes waste fractions, vehicle capacities, service times and the priorities of the collection points into account. Quantities and priorities come from an upstream service, for example from fill-level sensors; the API documents the interface for it.
Road network, travel times and route geometry come from a self-hosted Valhalla instance with OpenStreetMap data and a truck profile with the vehicle's dimensions and weight. For drivers, the API provides turn-by-turn instructions, progress against the planned route, re-routing after deviations and map matching of GPS traces.
The API stores collection points, unloading sites, vehicles, waste fractions, tour templates and calculated tours in MySQL, authenticates users with JWT and grants rights per user. It does not connect to commercial map services.
Requirements
- .NET 8 (x64) on Linux or Windows, MySQL 8.0 and a Valhalla instance of your own with map data of your region.
- A frontend or another client of your own; apart from the Swagger documentation, the API has no user interface.
- The emission factors are starting values and must be calibrated before CO2 figures are published.
- License: GPL-3.0-or-later with an additional permission under section 7 of the GPL for combining it with Google OR-Tools (SmartRouting Backend OR-Tools Exception). All other dependencies are under GPL-compatible licenses.
Software-Details
11/19/26
11/19/26
beta
- linux
- windows
1.0.0
GPL-3.0-or-later
Making software use visible!
Last updated: