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.
- Run
yarnto install the prerequisites.
This program uses the standard equation (e + f = v^2 / 127r) used throughout the United States road engineering manuals to create 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.
The program displays the values in imperial units (radius in feet, velocity in mi/h).
It also provides a guideline for selecting the in-game maximum speed limit, given the curve's maximum design speed.
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).
| Parameter | Units | Flags |
|---|---|---|
| radius | m | --r, --radius |
| velocity | km/h | --v, --velocity |
node ./index.js --[flag] [value] ...
The latest version is 1.3.0, and was released on 13 October 2024.
This program is Copyright © 2022-2024 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.