Code Monkey home page Code Monkey logo

pendelstrecke's Introduction

Pendelstrecke

Pendelstrecke is a tool for visualizing the time needed for commuting trips within the VVS on a map. VVS is the local public transport in Stuttgart.

How it works

The python script queries the VVS API for a trip from each station to one or more specified destination stations and saves the resulting data to a file. These results can then be viewed on a map. For every station, a colored marker indicates the duration that a commute to the destination will take from this location. Additionally, it is possible to filter the displayed stations by the number of changes needed for a connection.

Screenshot

Usage

  1. Download the CSV file containing all VVS stations.
  2. Supply all configuration values, especially the path to your CSV file, in pendelstrecke/config.yaml. The destination station IDs can be obtained from the CSV file as well.
  3. Install all dependencies and execute the script, e.g. by using the following commands.
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt --no-cache-dir
cd pendelstrecke/
python3 main.py
  1. Open map/index.html in your web browser to view your results on the map. The navigation bar on the top can be used to switch between the specified destination stations.

Credits

Pendelstrecke is based on the following open source projects.

  • vvspy is used for gathering data from the VVS API (MIT License).
  • Leaflet is used for displaying data on the map (BSD 2-Clause License).
  • VVS OpenData Set provides the base data set (CC BY 4.0 License).

License

This project is licensed under the GNU General Public License v3.0.

pendelstrecke's People

Stargazers

 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.