Southeastern Pennsylvania Transportation Authority Serving Bucks, Chester, Delaware, Montgomery, and Philadelphia Counties
Returns a list/queue of trains scheduled to arrive at a station in two/both directions. The direction is demarcated as either Northbound or Southbound. The directions are obviously not geographical references, but rather a reference to the old Reading and Pennsy Railroads. The key to understanding the direction is by using Suburban Station as a starting point: Any trains that that move eastbound towards Market East are all considered Northbound; trains going from Suburban to 30th St are all Southbound. The 'path' field describes more accurately the path of travel along the various branches.
URL: https://www3.septa.org/hackathon/Arrivals/Suburban%20StationSample JSON: { "Suburban Station Departures: June 9, 2015, 12:43 pm": [ { "Northbound": [ { "direction": "N", "path": "R7N", "train_id": "736", "origin": "Trenton", "destination": "Chestnut H East", "status": "7 min", "service_type": "LOCAL", "next_station": "Suburban Station", "sched_time": "Jun 9 2015 12:39:00:000PM", "depart_time": "Jun 9 2015 12:40:00:000PM", "track": "2", "track_change": null, "platform": "B", "platform_change": null } ] } ] } |
https://www3.septa.org/hackathon/Arrivals/req1/req2
Param(s): req1 = Station Name (required); req2 = Number of Results (optional: Default = 5)
Every Regional Rail stop is a valid parameter please refer to the Regional Rail Inputs page to see all valid inputs.
Try it now by visiting our Next to Arrive and Arrivals example page.
Creates a list of all Regional Rail trains on the system. Showing the train's ID number, its starting location, its destination, and if it is late or not.
URL: https://www3.septa.org/hackathon/TrainView/Sample JSON: [ { "lat": "39.99139", "lon": "-75.22595", "trainno": "1072", "service": "LOCAL", "dest": "Suburban Station", "nextstop": "30th Street Station", "late": 0, "SOURCE": "Cynwyd", "TRACK": "S", "TRACK_CHANGE": "" } ] |
https://www3.septa.org/hackathon/TrainView/
Param(s): None
Returns departure and arrival times between two different stations.
Sample JSON: [ { "orig_train": "4356", "orig_line": "Airport", "orig_departure_time": " 1:42PM", "orig_arrival_time": " 2:00PM", "orig_delay": "On time", "term_train": "537", "term_line": "Paoli/Thorndale", "term_depart_time": " 2:19PM", "term_arrival_time": " 2:36PM", "Connection": "30th Street Station", "term_delay": "2 mins", "isdirect": "false" } ] |
https://www3.septa.org/hackathon/NextToArrive/req1=/req2=/req3
Param(s): req1 = Start Station (required); req2 = End Station (required); req3 = Number of Results (optional: default 4)
Every Regional Rail stop is a valid parameter please refer to the Regional Rail Inputs page to see all valid inputs.
Try it now by visiting our Next to Arrive and Arrivals example page.
Returns bus and trolley locations by route.
URL: https://www3.septa.org/hackathon/TransitView/44 or https://www3.septa.org/hackathon/TransitViewAll/Sample JSON: { "bus": [ { "lat": "39.964336", "lng": "-75.184761", "label": "5423", "VehicleID": "5423", "BlockID": "9682", "Direction": "EastBound", "destination": "5th-Market", "Offset": "4", "Offset_sec": "239" } } |
https://www3.septa.org/hackathon/TransitView/req1= or https://www3.septa.org/hackathon/TransitViewAll/
Param(s): req1 = route (required)
Every bus and trolley route is a valid parameter please refer to the Bus & Trolley Inputs page to see all valid inputs.
Try it now by visiting our TransitView TransitView example page.
Returns a list of of bus and trolley detours. Can be viewed all at once or by route.
URL: https://www3.septa.org/hackathon/BusDetours/Sample JSON: { "route_id": "2", "route_info": [ { "route_direction": "NB", "reason": "PGW", "start_location": "16th & Fairmont", "end_location": "", "start_date_time": "6/9/2015 9:33 AM", "end_date_time": "6/9/2015 6:00 PM", "current_message": "\nN/B via: 16th to\nR-Spring Garden\nL-13th\nL--Ridge\nR-16th\n until 6pm" ] } } |
https://www3.septa.org/hackathon/BusDetours/req1
Param(s): req1 = route (optional)
Every bus and trolley route is a valid parameter please refer to the Bus & Trolley Inputs page to see all valid inputs.
Shows if there is a travel alert for a bus or trolley route.
URL: https://www3.septa.org/hackathon/Alerts/Sample JSON: { "route_id": "bus_route_24", "route_name": "24", "mode": "Bus", "isadvisory": "No", "isdetour": "N", "isalert": "N", "issuppend": "N", "last_updated": "Mar 5 2015 4:18PM", "isSnow": "N", "description": "Southampton & Rockledge to FTC " } |
https://www3.septa.org/hackathon/Alerts/req1
Param(s): req1 = route (optional)
Every bus and trolley route is a valid parameter please refer to the Bus & Trolley Inputs page to see all valid inputs.
Returns the travel alerts for a bus or trolley route.
URL: https://www3.septa.org/hackathon/Alerts/get_alert_data.php?req1=bus_route_65Sample JSON: { "route_id": "bus_route_65", [ { "route_id": "bus_route_65", "route_name": "65", "current_message": "", "advisory_message": "", "detour_message": "", "detour_start_location": "", "detour_start_date_time": "", "detour_end_date_time": "", "detour_reason": "", "last_updated": "Feb 9 2015 09:51:47:633PM", "isSnow": "N" } ] } |
https://www3.septa.org/hackathon/BusDetours/req1=
Param(s): req1 = route (optional)
Every bus and trolley route is a valid parameter please refer to the Bus & Trolley Inputs page to see all valid inputs.
Returns a list of all elevator outages.
URL: https://www3.septa.org/hackathon/elevator/index.phpSample JSON: { "meta": { "elevators_out": 1, "updated": "2015-06-09 14:33:46" }, "results": [ { "line": "Market Frankford Line", "station": "Allegheny", "elevator": "Eastbound", "message": "No access to\/from eastbound platform", "message_html": " No access to\/from eastbound platform", "alternate_url": "http:\/\/www.septa.org\ /service\/accessible_septa\/alt_service_mfl.html" } ] } |
https://www3.septa.org/hackathon/elevator/index.php
Param(s): None
Returns the schedule for a train by the train's number.
URL: https://www3.septa.org/hackathon/RRSchedules/458Sample JSON: [ { "station": "Airport Terminal E-F", "sched_tm": "7:39 pm", "est_tm": "7:39 pm", "act_tm": "na" } ] |
https://www3.septa.org/hackathon/RRSchedules/req1
Param(s): req1 = Train Number (required)
For train numbers please check the GTFS data.
Returns a list of times that a bus or trolley will stop at a particular stop.
URL: https://www3.septa.org/hackathon/BusSchedules/?req1=20731Sample JSON: "102": [ { "StopName": "North St Station", "Route": "102", "date": "3:32p", "day": "Tue", "Direction": "0", "DateCalender": "06/09/15 03:32 pm" } |
https://www3.septa.org/hackathon/BusSchedules/?req1=
Param(s): req1 = Stop ID (required)
Every stop ID is a valid parameter for a list of stop IDs by route please visit the Choose Your Stop ID page.
Returns bus and trolley stop locations by route.
URL: https://www3.septa.org/hackathon/Stops/index.php?req1=65Sample JSON: [ { "lng": -75.259406, "lat": 39.962098, "stopid": 2000, "stopname": "69th St West Terminal" }, { "lng": -75.293768, "lat": 39.941006, "stopid": 2029, "stopname": "Burmont Rd & Marshall Rd - FS" } ] |
https://www3.septa.org/hackathon/Stops/index.php?req1=
Param(s): req1 = route (required)
Every bus and trolley route is a valid parameter please refer to the Bus & Trolley Inputs page to see all valid inputs.
Takes in 4 parameters to return all SEPTA locations from a geographical point within a radius that is measured in miles.
URL: https://www3.septa.org/hackathon/locations/get_locations.php?lon=-75.33299748&lat=40.11043326&radius=3Sample JSON: [ { "location_id": 189001, "location_name": "Cash-A-Check Plus", "location_lat": "40.1104333", "location_lon": "-75.3329975", "distance": "0.0000", "location_type": "sales_locations", "location_data": { "location_id": "189001", "location_name": "Cash-A-Check Plus", "startDate": "", "endDate": "", "address1": "601 E. Main St.", "address2": "601 E. Main St.", "city": "Norristown", "state": "PA", "zip": "19401", "hours": "Mon-Fri 9:00a-5:15p Sat 9:00a-5:15p", "loc_name": "", "status": "", "phone": "" } }, ] |
https://www3.septa.org/hackathon/locations/get_locations.php?lon=req1&lat=req2&type=req3&radius=req4
Param(s): req1 = Latitude(required), req2 = Longitude(required), req3 = Type(optional), req4 = Radius(optional)
Here are a list of types for req3:
Currently in BETA TransitView now displays the GTFS trip IDs.
URL: https://www3.septa.org/beta/TransitView/23Sample JSON: { "trip": "4403985", "lat": "40.043152", "lng": "-75.18071", "label": "5479", "VehicleID": "5479", "BlockID": "7064", "Direction": "NorthBound", "destination": "Chestnut Hill", "Offset": "3", "Offset_sec": "220" } |
https://www3.septa.org/beta/TransitView/req1=
Param(s): req1 = route (required)
Every bus and trolley route is a valid parameter please refer to the Bus & Trolley Inputs page to see all valid inputs.
Code for Philly: http://www.codeforphilly.org/
Apps For Philly: http://www.appsforphilly.org/
TransitView (Bus/Trolley Locations): https://www3.septa.org/transitview
Next To Arrive (Regional Rail Departures): http://app.septa.org/nta/
SMS Schedules: https://www3.septa.org/sms/simulator/
Mobile Website: http://m.septa.org/
Twitter: http://www.twitter.com/septa/
Press Releases: http://septa.org/media/releases/
News Bites: http://septa.org/media/short/
Current Travel Alerts: https://www.septa.org/realtime/alert.html
Elevator Status: https://www3.septa.org/elevators/
Bus Detours: http://septa.org/realtime/index.html
TrainView:
html
pda
mobile
SEPTA App Source Code:
Android
iOS
SEPTAdev Google Group
SEPTAdev Twitter
SEPTAdev Email
Back To Top
GTFS:https://github.com/septadev/GTFS/releases/latest
GTFS-rt Bus (Protocol Buffer):
Trip Updates
Service Alerts
Vehicle Position
GTFS-rt Bus (Human Readable):
Trip Updates
Service Alerts
Vehicle Position
GTFS-rt Rail (Protocol Buffer):
Trip Updates
Service Alerts
Vehicle Position
GTFS-rt Rail (Human Readable):
Trip Updates
Service Alerts
Vehicle Position
Back To Top
1234 Market Street | Philadelphia PA 19107