Density formula (Traffic Density Overlay): Difference between revisions
Jump to navigation
Jump to search
m Frank@tygron.nl moved page Density formula (Traffic Distance Overlay) to Density formula (Traffic Density Overlay) |
|
(No difference)
| |
Latest revision as of 13:14, 15 July 2026
Traffic density for any given location is calculated in the following way:
Traffic per vehicle type
The amount of vehicles per vehicle type are calculated as follows:
Total traffic
The total amount of traffic is calculated as follows:
Notes
- Because a boolean (such as BUSES_ACTIVE), is represented as a 1 or a 0, having a traffic type active makes the total amount of that traffic type equal to the defined traffic amount, while having that traffic type inactive multiples any possible value with 0, resulting in 0 vehicles being counted for that traffic type.
- If the traffic amount is defined as a single value, that value is used for all defined hours. However, if the amount if an array of values, each of the 24 indexes of that array are assumed to correspond to the hour denoted by those indexes, and as such that specific value from the array is used.