Skip to content

Latest commit

 

History

History
45 lines (25 loc) · 2.1 KB

README.md

File metadata and controls

45 lines (25 loc) · 2.1 KB

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.

Installation

  • Run yarn to install the prerequisites.

Usage

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:

  1. Specify a radius (in meters) to calculate the proper speed limit (in km/h) for the curve.
  2. Specify a velocity (in km/h) to calculate the minimum radius (in meters) for the curve.

Program output

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).

Input parameters

Parameter Units Flags
radius m --r, --radius
velocity km/h --v, --velocity

How to run

node ./index.js --[flag] [value] ...

Release info

The latest version is 1.3.0, and was released on 13 October 2024.

Copyright and License

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.