Skip to content

athuler/PassioGo

Repository files navigation

Passio Go API

PyPI - Version Pepy Total Downlods Documentation Status

An unofficial Python API for Passio Go allowing anyone to build transit-based applications for hundreds of Universities, Municipalities, Paratransit, and Airports.

Installation

The package is available to download using pip.

pip install passiogo

Documentation

Project documentation for the latest stable version is available at passiogo.readthedocs.io. Documentation for other versions is available at passiogo.readthedocs.io/en/X.X.X.

The documentation is built using mkdocs and can be rebuilt using the following:

pip install -r docs/requirements.txt
mkdocs serve

Usage

Transportation System

Before doing anything, you will need a TransportationSystem object.

If you know the id of the desired transportation system, you can obtain the object using passiogo.getSystemFromID(id).

system = passiogo.getSystemFromID(1068)

If you do not know the ID of your desired transportation system, you can find it here or with the following:

system = passiogo.printAllSystemsMd()
- 3630 Peachtree (#951)<br/>
- 5025 Apartments (#1634)<br/>
- 725 Ponce (#1832)<br/>
- Agnes Scott College (#1471)<br/>
...

Routes

You can obtain all the routes for a given transportation system using TransportationSystem.getRoutes():

routes = system.getRoutes()

Here, routes is a list of Route objects. We can look at how much information is available for each route.

routes[0].__dict__
{'id': '133007',
 'groupId': '5702',
 'groupColor': '#0000ff',
 'name': 'Apostolic',
 'shortName': 'AP',
 'nameOrig': 'Apostolic',
 'fullname': 'University of Chicago',
 'myid': '38729',
 'mapApp': '1',
 'archive': '0',
 'goPrefixRouteName': '1',
 'goShowSchedule': 1,
 'outdated': '0',
 'distance': 578,
 'latitude': '41.780867018',
 'longitude': '-87.592902254',
 'serviceTime': None,
 'serviceTimeShort': None,
 'systemId': 1068,
 'system': <passiogo.TransportationSystem at 0x24a77026a00>}

Stops

You can get all the stops within a given transportation system using TransportationSystem.getStops():

stops = system.getStops()

Here, stops is a list of Stop objects. We can look at how much information is available for each route.

stops[0].__dict__
{'id': '10103',
 'routesAndPositions': {'4009': [0]},
 'systemId': 1068,
 'name': 'Medical Stop',
 'latitude': 41.79668374,
 'longitude': -87.595753286,
 'radius': 36,
 'system': <passiogo.TransportationSystem at 0x24a77026850>}

If you only wish to get stops for a given route, you can use the Route.getStops() method.

stops = routes[0].getStops()

System Alerts

You can get all system alerts within a given transportation system with the TransportationSystem.getSystemAlerts().

alerts = system.getSystemAlerts()

Here, alerts is a list of SystemAlert. We can look at how much information is available for each alert.

alerts[0].__dict__
{'id': '27535',
 'systemId': '1068',
 'system': <passiogo.TransportationSystem at 0x24a764e7a90>,
 'routeId': None,
 'name': 'Nightride Assistance Contact',
 'html': 'During the hours of 4 p.m. until 4 a.m., if you do not see arrival times or buses on route in the app, or experience any unusual event, please contact <b>773-573-7201</b> for assistance.',
 'archive': '0',
 'important': '1',
 'dateTimeCreated': '2024-04-09 09:43:10',
 'dateTimeFrom': '2024-04-09 15:40:44',
 'dateTimeTo': '2025-04-16 09:40:44',
 'asPush': '1',
 'gtfs': '1',
 'gtfsAlertCauseId': None,
 'gtfsAlertEffectId': None,
 'gtfsAlertUrl': None,
 'gtfsAlertHeaderText': 'Nightride Assistance Contact',
 'gtfsAlertDescriptionText': 'During the hours of 4 p.m. until 4 a.m., if you do not see arrival times or buses on route in the app, or experience any unusual event, please contact 773-573-7201 for assistance.',
 'routeGroupId': None,
 'createdUtc': '2024-04-09 14:43:10',
 'authorId': '1202',
 'author': 'John Appleseed (abc@domain.com)',
 'updated': '2024-07-17 16:12:02',
 'updateAuthorId': '1217',
 'updateAuthor': 'Mark Appleseed (def@domain.com)',
 'createdF': 'Tuesday, April 9th, 2024 3:40 PM',
 'fromF': 'Tuesday, April 9th, 2024 3:40 PM',
 'fromOk': '1',
 'toOk': '1'}

Changelog

This project's changelog is available at CHANGELOG.md

Bug Reporting / Feedback

Found a bug? Have an idea for a new feature? Please send it in as a GitHub issue!

Contributing

Interested in contributing to this package? Check out open issues.

When ready, fork the repository, make your edits, then open a pull request on the active development branch.

All Transportation Systems Accessible By The API

Collapsed below are all the transportation systems publicly available through this API.

Expand to Show All Systems

Last Updated: 2024/07/14

  • 3630 Peachtree (#951)
  • 5025 Apartments (#1634)
  • 725 Ponce (#1832)
  • Agnes Scott College (#1471)
  • Alabama A&M University (#2456)
  • Anne Arundel County Office of Transportation (#3469)
  • Atlantic Station (#4349)
  • AUC (#67)
  • Audible (#876)
  • Augusta University (#553)
  • Bayonne Bay (#1808)
  • Beacon College (#3389)
  • Beacon Shuttle (#3561)
  • Beloit Transit (#3655)
  • Bis-Man Transit (#4121)
  • Bowie State University (#3001)
  • Brockton Area Transit Authority (BAT) (#2046)
  • Bull Runner at USF (#2343)
  • Cal State San Bernardino (#1187)
  • Canby Area Transit (#3274)
  • Cascades East Transit (#2460)
  • Casper Area Transit (#4055)
  • Century Village (FT) (#444)
  • Chapman University (#263)
  • Charles River TMA (#5019)
  • Charleston Airport REEF (#4749)
  • Charm City Circulator (#3554)
  • Chemung County (C-Tran) (#4009)
  • CHOA (#3489)
  • Citrus Connection (#1752)
  • City of Arcadia (#3304)
  • City of Bangor (#4631)
  • City of Billings MET Transit (#3901)
  • City of Cerritos (#2282)
  • City of Clovis (#3743)
  • City of Detroit - Employee Shuttle (#1275)
  • City of Harrisonburg Department of Public Transportation (HDPT) (#2868)
  • City of Hoboken (#466)
  • City of Irvine (#4502)
  • City of Jackson (JTRAN) (#3363)
  • City of Jacksonville (#3521)
  • City of Monterey Park (#3215)
  • City of Newport Beach (Balboa Peninsula Trolley) (#4883)
  • City of Olean (#2084)
  • City of Rosemead (#3670)
  • City of Sandy (#3183)
  • City of Tracy (MTM / Tracer Transit) (#2996)
  • City of Tyler (#3777)
  • City of Watertown (CitiBus) (#2775)
  • Citylink Edmond (#4662)
  • Citylink North (Kootenai County) (#2016)
  • Citylink South (#2059)
  • Clackamas County (#3205)
  • Clemson Tiger Transit (#1654)
  • Clemson University (#793)
  • Coca Cola (#416)
  • Colby College (#3377)
  • Columbia University (#74)
  • Concho Valley Transit (#3281)
  • Concord Kannapolis Area Transit (#4124)
  • Concourse (#1841)
  • Connect Douglas (#1661)
  • Cooperative Alliance for Seacoast Transportation (COAST) (#2962)
  • Coral Gables (#2787)
  • CoryD (Test) (#829)
  • County Connector (#2933)
  • CSULB (#4163)
  • Disney Programs (#2208)
  • District of Chamblee (#1897)
  • Drury Plaza Hotel - Disney Springs (#4748)
  • Eastern Kentucky University (#3828)
  • Eastern Panhandle Transit Authority (EPTA) (#1298)
  • Eastern Virginia Medical School (#591)
  • Elon University (#3045)
  • Emory University (#4432)
  • Endicott College (#2873)
  • ES Atlanta (#2280)
  • Escambia County Area Transit (ECAT) (#2283)
  • ETHRA (#4583)
  • EWR Employee Shuttle (#2989)
  • EWR Port Authority NYNJ (#2496)
  • FIT NY (#973)
  • Florham Park (Sun Valley/River Bend) (#2311)
  • Florida Gulf Coast University (FGCU) (#2281)
  • Florida International University (#4119)
  • ForestView/Evergreen/Evergreen East (#1641)
  • Fort Saskatchewan Transit (PWTransit Canada Ltd.) (#912)
  • Franklin Regional Transit Authority (#2771)
  • Franklin Transit (#1652)
  • Fresh Direct (Pro Park) (#4691)
  • Fresno State University (#805)
  • GatewayJFK Connection (#2125)
  • George Washington University (GW) (#4120)
  • Georgia College & State University (GCSU) (#895)
  • Georgia Southern University (#137)
  • Georgia State University (#480)
  • Georgia Tech (#76)
  • GoBus (#1839)
  • Harford County (#4620)
  • Harris County Transit (#3497)
  • HARTransit (#2250)
  • Harvard University (#831)
  • Hendry County Transit System (#2217)
  • Highland Hospital Metropolis (#3829)
  • Hill Place Apartments (#1092)
  • Hollins University (#3014)
  • Houston Airport (SP+) (#4919)
  • Hutch Metro Center (#1569)
  • Interurban Trolley (#3639)
  • Jasper Transit (#4294)
  • JFK LGA Shuttles (#2494)
  • Kentucky River Foothills (#3630)
  • Key West Transit (#4440)
  • Lawrence Transit (#4834)
  • Lehigh University (#1090)
  • Los Angeles International Airport (LAX) (#1421)
  • Marymount University (#4716)
  • Mayaguez (Skytec) (#3206)
  • McAfee Knob Trailhead (Ridesource) (#3069)
  • Mercy University (#694)
  • Metropolis Parking (Anschutz Campus) (#3282)
  • Missouri State University (#459)
  • MIT (#94)
  • Montachusett Regional Transit Authority (MART) (#2173)
  • National Cancer Institute (#3293)
  • NC State University (#3827)
  • New River Transit Authority (#3362)
  • New York University (#1007)
  • North Carolina A&T State University (#261)
  • North Fork Area Transit (#2587)
  • Otter Bus (Ridesource) (#3015)
  • Ozark Regional Transit (#1589)
  • Palm Beach International Airport Parking Shuttle (#1071)
  • Pepperdine University (#3593)
  • Pittsburgh International Airport (PIT) (#3200)
  • Port of Galveston (LAZ Parking) (#3294)
  • Portage Area Regional Transit Authority (PARTA) (#3420)
  • Providence College (#4147)
  • Quinnipiac University (#3899)
  • Radford Transit (#1248)
  • Ravinia (#1593)
  • River Valley Transit (#1726)
  • River Valley Transit (#5168)
  • Roadrunner Transit (#4010)
  • Rochester Institute of Technology (RIT) (#4006)
  • Roger Williams University (#1850)
  • Rutgers University (#1268)
  • Sacramento Airport Park & Ride (#898)
  • Saint Peter's University (#493)
  • Sales Demo - SR (#5047)
  • Seneca Transit System (#2035)
  • Sioux City Transit (#4832)
  • SMART Transit (#4476)
  • South Clackamas Transportation District (#4233)
  • Southeastern Louisiana University (#186)
  • Southern Connecticut State University (#431)
  • St. Lawrence County Public Transit (#4234)
  • St. Vincent's (Pinnacle Transportation Group) (#2561)
  • State Shuttle (Onyx Equities) (#2780)
  • STC Atlanta Georgia (#2197)
  • Stevens Point - Central Transportation (#2556)
  • Tennessee Technological University (#1736)
  • Terraces (Pinnacle Transportation Group) (#3270)
  • The Concord Trolley (#3089)
  • The Cottages at Lake Tamaha Tuscaloosa (#1093)
  • The Galleria (Reef Parking) (#1900)
  • The Hartford (#4581)
  • The U Apartments Raleigh (#1650)
  • Township of West Orange (#3166)
  • Towson Loop (Baltimore County) (#2153)
  • Tulane University (#353)
  • Tuscaloosa Transit Authority (#3817)
  • UARK (University of Arkansas) (#3778)
  • UCONN/WRTD (#1541)
  • UNC Charlotte (#1053)
  • UNC Greensboro (UNCG) (#2874)
  • UNC Wilmington (#3952)
  • University at Buffalo (#4882)
  • University of Alabama (#240)
  • University of Chicago (#1068)
  • University of Florida (UF) (#3826)
  • University of Georgia (UGA) (#3994)
  • University of Hartford (#3305)
  • University of Miami Medical Center (Reef Parking) (#4201)
  • University of Michigan-Dearborn (#1481)
  • University of Montana (ASUM) (#4041)
  • University of New Haven (#3900)
  • University of New Mexico (UNM) (#2156)
  • University of North Georgia (#646)
  • University of Rochester (#3214)
  • University of San Diego Tram Services (#3444)
  • University of Texas at El Paso (UTEP) (#2383)
  • University of Wisconsin-Milwaukee (#728)
  • Upper Cumberland Human Resource Agency (UCHRA) (#2875)
  • Utah State University (#3499)
  • Vanderbilt University (#3622)
  • Vanderbilt University Medical Center (#1332)
  • Via Mobility Services (#4729)
  • VMware (#1274)
  • Wake Forest University (#3669)
  • WaterColor Community Association (#4842)
  • West Midtown Shuttle (#4473)
  • Western Carolina University (#2597)
  • WestMar (#1091)
  • Woodbridge Village/Gardens/Colonial (#1642)
  • XChange at Secaucus Junction (#432)