Skip to content

ShawnButtrick/python_mbta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python3 app.
run "python3 mbta.py"
application will output some information and then prompt for 2 "stop ids".
example inputs:  
  place-hymnl  and  place-knncl  
  place-forhl  and  place-brntn

To run tests and lints, you need to run the following (your mileage may vary based on OS):
  sudo apt install python3-pip
  pip3 install -U pytest
  pip3 install -U mock
  pip3 install -U pytest-mock
  pip3 install -U pylint
  python3 -m pytest
  pylint mbta.py

MBTA API Portal:
https://api-v3.mbta.com/

APIs Doc:
https://api-v3.mbta.com/docs/swagger/index.html#/

Sample ROUTES call:
https://api-v3.mbta.com/routes?filter[type]=0,1

Sample STOPS call:
https://api-v3.mbta.com/stops?filter[route]=Green-B



Map here for convenience:  http://s3.amazonaws.com/media.wbur.org/wordpress/1/files/2013/10/1007_new-mbta-map.jpg

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages