Skip to content

hactar/WL-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wiener Linien Generator

The Wiener Linien real time departure server provides real time departure data for Vienna. Getting the data isn't as easy as in different regions though as the server requires you to ask for platform IDs instead of the usual station IDs. To look up a station you need to figure the platform (RBL) IDs first. This is done using the 3 seperate CSV files which contain the line, platform and station information. Wouldn't it be nice if you could have a JSON array of stations with their platforms as a subarray instead? This tool helps you generate this.

If you're not interested in the app you can download a ready to use JSON file here. note though that this file may not be uptodate as it was generated in September 2013. If the files at Wiener Linien - Echtzeitdaten have been updated, you'll need to regenerate this file.

The resulting structure is this: Screenshot

This app is a tool for developers. It generates a JSON file for usage in your apps. It creates a JSON array of station dictionaries, with the platforms and line information merged in.

Takes the 3 Wiener Linien CSV files for the RBL server, removes some of the unrequired items, fixes some discrepancies and merges them into a JSON file for use in your app. The JSON file is placed on your desktop.

This JSON file is used in the iOS App Wann

The app is provided under the MIT license.

Instructions

  • Download the 3 CSV files from Wiener Linien - Echtzeitdaten
  • Launch the app and feed in the 3 CSV in the order the app asks for them
  • The generated JSON file is placed on your desktop (wl.json).

Screenshot

Requirements

  • Mac OS X

Todo

The tool is ugly but fully functional, but coded for personal use, as such it only contains minimal error checking and you'll need to adapt it if you need a different resulting JSON structure.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published