Skip to content

Repository files navigation

Railway Route Generator

This is a small library generating routes (Fahrstraßen) for a given yaramo railway topology.

Installation

Just install it with pip:

pip3 install git+https://github.com/arneboockmeyer/railway-route-generator

Usage

from railwayroutegenerator.routegenerator import RouteGenerator

# topology is a yaramo.models.Topology object
RouteGenerator(topology).generate_routes()
print(topology.routes)

Further examples can be found in the demo repository.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages