Skip to content

jrmedd/nct-buses

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

A little while ago, I produced a real-time tram stop timetable (for Manchester's Metrolink) using Open Data from TfGM. After my dad spotted this on a screen behind a bar in MediaCityUK, he asked if I could produce something similar for his local bus stop in Nottingham.

While Nottingham City Transport only have a limited Open Data portal, they do have a real-time bus timetables on their site. In order to wrap this in something that could be displayed on a screen in my parents' hallway, I've made use of @maxhumber's gazpacho to scrape data from NCT, and provide an endpoint for a dashboard I'm working on.

Usage

For development and testing, clone this repo, install dependencies using python3 -m pip install -r requirements.txt, and start the dev server using python3 web_app.py. One the server is running, get your desired stop ID from NCTX and you can request the next 5 bus times using http://localhost:5000/times/[stopID]

About

A means of querying real-time bus stop data for Nottingham City Transport buses.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published