pip3 install -r requirements.txt
- matplotlib (main plotting lib)
- requests
- smopy (OSM tile downloads)
- gtfs-realtime-bindings
- protobuf3-to-dict
- Download GTFS static files (TransLink), unzip into SEQ_GTFS dir (configurable)
- Run
python3 feedparser.py
, will download and save OSM map toMAP_FILENAME
for region defined inBBOX
- Download correct GTFS static files
- Edit
FEED_URL
infeedparser.py
- Edit
BBOX
with coord bounds(LONG_MIN, LONG_MAX, LAT_MIN, LAT_MAX)
, useful tool: https://www.openstreetmap.org/export - Edit
get_entity_type
function to return correct vehicle i.e. bus/train/ferry/etc from the GTFS dataset. Otherwise simply replace with e.g.return 'buses'
(all vehicles will be labelled as green dots)