https://www.snap4city.org/dashboardSmartCity/view/Gea-Night.php?iddasboard=NDI1MQ==
To understand how works the simulation of Traffic Flow, traffic flow reconstruction, this page is describing the components.
The actual algorithm for TFR is not released in Open Source, plase contact snap4city@disit.org
Description
On the basis of some scenario the operator can define the an area on which it is interested to make/compute: (i) the traffic flow reconstruction, TFR; (ii) the heatmaps; etc.
On the scenario, one can include the data related to sensors (traffic flow, wheater, emissions, etc.). Sensors can be actual and accessible data from the storage as well as TTT typical time trends to simulate some specific conditions as well as what-if analysis:
https://www.mdpi.com/1424-8220/24/7/2225/pdf
The TFR is the algorithm to pass from (i) the scattered data of traffic flow measured from sensors on some points, to (ii) the traffi flow density in ll segment of the road graph.
So that have a scenario to identify an area, and associating some traffic flow sensors or TTT in specific borders points and/or scenario road graphs, it is possible to estimated traffic flow data in all segments of the ares.
Snap4City provides some API and modules writtend in python or Rstudio to compute on the basis of some referring scenario:
- Computing Accorpated graph, ACC: passing from the road graph of a scenarion including micro-segments, on the straight roads connecting junctions, haveing a lenght, a classification, number of lanes, etc.
- Computing TFR: Computing a FAKE traffic flow reconstruction and saving the TFR on snap4city platform accrding to the graph accorpated, ACC. This code and flow is just to allow you understand how the Traffic Flow reconstruction saving is working. The actual TFR algorithm has to be requested to Snap4city@disit.org. Once the TFR is saved as shown in the TFR demo.R file, it is possible to load on dashboards and visualize on digital twin 3D, etc. And it is also possible to compute some KPI.
- Computing KPI: computing actual KPI on the basis of a produced TFR, for example computing the lenght, the amount of emissions, the amount of consumed fuel, etc. If you do not have the computed a real TFR the computation is performed on the fake TFR produced.