Skip to main content

An unofficial Python API for Passio Go allowing anyone to build transit-based applications for hundreds of Universities, Municipalities, Paratransit, and Airports. Based on Andrei Thüler's API, with the vehicle latitude/longitude issue fixed.

Project description

Passio Go API Fixed

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. Based on Andrei Thüler's PassioGo API, with the vehicle latitude/longitude issue fixed.

Installation

The package is available to download using pip.

pip install passiogo-fix

Documentation

Project documentation for Andrei Thüler's latest stable version is available at passiogo.readthedocs.io. Documentation for other versions is available at passiogo.readthedocs.io/en/X.X.X.

Usage

Importing

To import this version of the API, you will need to run the following:

from passiogo_fix import passiogo

Otherwise, everything is exactly the same as Andrei Thüler's API.

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

Andrei Thüler's changelog (everything besides this fix) is available at CHANGELOG.md\

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

passiogo_fix-0.0.3.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

passiogo_fix-0.0.3-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file passiogo_fix-0.0.3.tar.gz.

File metadata

  • Download URL: passiogo_fix-0.0.3.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for passiogo_fix-0.0.3.tar.gz
Algorithm Hash digest
SHA256 994c14847e7a8bddffd3152b2661b67b78b0444edd08cff6104d8384a0e14ce4
MD5 c76f0d8373591069956a8eb18770d59d
BLAKE2b-256 4802fcaef0c03cf1991f8ab4bb768b8992e2587c5e332a43301561b2755468e7

See more details on using hashes here.

File details

Details for the file passiogo_fix-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: passiogo_fix-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for passiogo_fix-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 35155087b45de044c42dc3a207d79e638d4423c5eaab7d9cfdc94c085db2b85c
MD5 1436fb9bf73b211d14a7aa62264f3b43
BLAKE2b-256 035b78f607018079959222939aa05445aab6cdcfc44b965adb17aaab88592635

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page