Skip to content

Vonter/bmtc-gtfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bmtc-gtfs

Unofficial GTFS dataset for BMTC routes, stops and timetables in Bengaluru. Raw data sourced from Namma BMTC app, parsed and saved as GTFS.

Motivation

Caveat

The source for the data and analysis in this repository are the routes, stops and timetables as displayed on the Namma BMTC app. However, the Namma BMTC app is not completely accurate, and is particularly unreliable for timetables and stop timings. Nonetheless, the data can be used to understand general trends in the BMTC network.

Due to the design of the Namma BMTC app, only routes with functional live tracking are included in the GTFS. Any missing routes may be due to live tracking unavailability and not necessarily due to the route being inoperational.

GTFS

The GTFS dataset can be found here

GeoJSON

GeoJSONs can be found below:

Conversion into other formats can be done using free tools like mapshaper or QGIS

CSV

CSVs can be found below:

Visualization

Visualize the routes, stops and timetables in the GTFS dataset, with a web browser: https://transitrouter.pages.dev

Validations

Scripts

  • scrape.py: Scrape raw data from Namma BMTC
  • gtfs.py: Parse raw data and save as GTFS
  • valiate.py: Pass the GTFS through multiple GTFS validation tools
  • analysis.py: Process the GTFS and output a GeoJSON representing the network

Raw JSON

Raw JSON data scraped from Namma BMTC can be found below:

To-do

  • Scripts and data
    • Reduce validation errors and warnings in output GTFS
    • Fix missing/failed routes/stops/timetables/fare information
    • Add functionality in fetch script to refetch data that may have changed
    • GitHub Actions workflow for daily GTFS data updates
  • Analysis and visualizations
  • Features
    • Add fields for platform related details in large stations
    • Add Fares v2 support with fare product details

Contributing

Interested in contributing or want to know more? Join the bengwalk Discord Server

Credits

Inspiration

About

Unofficial GTFS dataset for BMTC

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages