Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 604 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 604 Bytes

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.