Git Product home page Git Product logo

road-geometry's Introduction

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

  • npm i to install the prerequisites

Usage

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:

  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.

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

  • Radius: --radius
  • Velocity: --velocity

How to run

node index.js [parameter=value]

Release info

The latest version is 1.0.0, and was released on 7 January 2022.

Copyright and License

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.

road-geometry's People

Contributors

brazenest avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.