Lanes (Function Value): Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 19: | Line 19: | ||
| notes= | | notes= | ||
* The default direction of traffic flow on a [[section]] of a road is determined by the [[Api session items buildings#Api Model Section|calculated skeleton line]] of that section. | * The default direction of traffic flow on a [[section]] of a road is determined by the [[Api session items buildings#Api Model Section|calculated skeleton line]] of that section. | ||
* Although categorized under "Car Traffic", the | * Although categorized under "Car Traffic", the number of lanes also affects the [[traffic visualization]] by determining how many parallel lines are drawn for other traffic types, such as [[Ships per hour (Function Value)|ships]] and [[Trains per hour (Function Value)|trains]]. | ||
| references= | | references= | ||
}} | }} | ||
| Line 27: | Line 27: | ||
* [[Function Values (Traffic visualization)]] | * [[Function Values (Traffic visualization)]] | ||
|api=*[[Api session event editor building set function value]] | |api=*[[Api session event editor building set function value]] | ||
* [[ Api session event editor functionoverride set function value]] | * [[Api session event editor functionoverride set function value]] | ||
* [[Api session event editor building reset function values]] | * [[Api session event editor building reset function values]] | ||
}} | }} | ||
Latest revision as of 06:57, 12 October 2026
| Function value | Attribute | Unit | Range | Description |
|---|---|---|---|---|
| Lanes | TRAFFIC_LANES | integer | -1.7976931348623157E308 to 1.7976931348623157E308 | How many lanes of traffic there are on this road. A negative value causes vehicles to move in the opposite direction. This is only relevant for roads, intersections, and bridges. This only affects the visualization. |
Values
- This Function Value does not have usable values by default.
- Buildings generated during project creation can have their values overwritten based on data in the NWB.
Used for
Notes
- The default direction of traffic flow on a section of a road is determined by the calculated skeleton line of that section.
- Although categorized under "Car Traffic", the number of lanes also affects the traffic visualization by determining how many parallel lines are drawn for other traffic types, such as ships and trains.