road-geometry : A real-world road curve calculator for Cities:Skylines
A command-line based tool to calculate/derive road curve parameters to model real-world road engineering and traffic safety guidelines.
npm i
to install the prerequisites
This program uses the standard equation (v^2 = 127r
) used throughout the United States road engineering manuals that creates a relation between a road curve's radius (r
) and the design speed limit (v
) through the curve, given the road exhibits no cant (i.e. superelevation).
Given this equation, this program may be used in multiple ways depending on your intention:
- Specify a radius (in meters), to calculate the proper speed limit (in km/h) for the curve.
- Specify a velocity (in km/h), to calculate the minimum radius (in meters) for the curve.
As this program is tailored to users of the Cities:Skylines computer game, the output of this program displays the radius value in meters and in game-units (u, where 1u === 8 meters
).
- Radius:
--radius
- Velocity:
--velocity
node index.js [parameter=value]
The latest version is 1.0.0, and was released on 7 January 2022.
This program is Copyright © 2022 Alden Gillespy, and provided under the Creative Commons Attribution-NoCommercial-NoDerivatives International 4.0 (CC-BY-NC-ND 4.0) License.
In summary: You are free to download and use this program in accordance with the terms outlaid in that license and applicable law.