Coder Social home page Coder Social logo

londoncommute's Introduction

London Bus Commute calculator

Tool to work out which bus stops you can reach directly from a radius around an initial bus stop.

Generates a .kml file which can be opened in Google Earth/Maps to see what areas you could commute directly from on a bus.

Motivation

I currently always get a seat on my bus commute, and always having a seat means more time to spend coding side projects twice a day. I want to find out where else I can commute from and keep this project time intact. This project was created in a few such coding sessions.

Setup

pip install -r requirements.txt

Sign up for TFL api access and download the bus stops and bus routes csvs. Save these to stops.csv and routes.csv

Usage

./main.py name radius

  • name is the name of the bus stop you wish to commute to
  • radius is the distance, in metres, you're willing to walk to another bus stop nearby, from either the initial bus stop or any of the destination stops

Output will be saved to out.kml

Example usage

./main.py "EPWORTH STREET" 700

example commutes

londoncommute's People

Contributors

c-oreills avatar

Stargazers

 avatar

Watchers

 avatar James Cloos 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.