LeafRoute is a routing service with a C++ back-end and an HTML/JavaScript frontend.
Its main purpose is to create an environment to simulate traffic in Smart Cities.
The frontend is built with Leaflet.
LeafLet plugins used:
Other scripts and libraries used:
- Bootstrap
- Font Awesome
- jQuery
- typeahead-address-photon
- Turf.js
- Sliders with constant sum inspired from constant-sum-sliders.
The GeoJsons in the simulation page are from Comune di Milano (zones, NILs), converted to GeoJSON with MyGeodata Converter.
The backend can be run in three ways:
- Compiled and run directly from source
- Built and run with Docker
- Compiled into a zip file that can be uploaded to AWS Lambda
The instructions can be found in routing/README.md
The Docker version can also be downloaded from Docker Hub.
Libraries used for the backend:
Demo here.
Backend must be running at the endpoint in the settings (default: localhost).