Skip to content

Script to convert Koppelvlak 1 public transport schedule to GeoJSON for lines

License

Notifications You must be signed in to change notification settings

nickubels/KV1-route-shapes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KV1-route-shapes

This script allows you to generate a GeoJSON with the public transport lines from a Dutch Koppelvlak 1 schedule.

Installing

Install the dependencies using pip install -r requirements.txt.

Usage

Run with python3 GenrateShapes.py -p PATH where PATH has to be the path to a folder with KV1 files. With -m it is possible to check for multiple KV1 folders within the path which will be merged into one GeoJSON. With -o it is possible to specify the folder where the GeoJSON has to be saved. See python3 GenrateShapes.py -h for more information.

Example output

Important note

In general this script does not take overlapping line segments into account. This means that the output might be less optimised than you would like. The reason for this is that the exact structure of a KV1 differs a bit per agency, it is thus hard to optimise this. As I only used this script for static visualisations I have decided to not further optimise it (at this point)

About

Script to convert Koppelvlak 1 public transport schedule to GeoJSON for lines

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages