Lanes (Function Value): Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (12 intermediate revisions by the same user not shown) | |||
| Line 4: | Line 4: | ||
|attribute=TRAFFIC_LANES | |attribute=TRAFFIC_LANES | ||
|unit=integer | |unit=integer | ||
|category= | |category=No | ||
|range=-{{doublemaxvalue}} to {{doublemaxvalue}} | |range=-{{doublemaxvalue}} to {{doublemaxvalue}} | ||
|description=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. | |description=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. | ||
| Line 18: | Line 18: | ||
| specifics= | | specifics= | ||
| notes= | | notes= | ||
* Although categorized under "Car Traffic", the | * 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 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= | ||
}} | |||
{{article end | |||
|seealso= | |||
* [[Function Values (Traffic visualization)]] | |||
|api=*[[Api session event editor building set function value]] | |||
* [[Api session event editor functionoverride set function value]] | |||
* [[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.