SEPTA

Southeastern Pennsylvania Transportation Authority Serving Bucks, Chester, Delaware, Montgomery, and Philadelphia Counties

Choose Your Service

Trip Planner

System Map

beginning location
final destination

or

Quick Links

SEPTA API

Code for America: Philadelphia Civic Hackathon 2012

SEPTA and SEPTAdev welcomes the second generation of Code for America fellows, as well as, all those participating in the Code Across America: Philadelphia Civic Hackathon in Philadelphia. The previous version of this page is still available.

SEPTA App Ideas

  • Representative and Transit Mashup - look up your transit trip and contact your reps about them
  • Car Share and Transit Mashup - overlay transit and car share (zipcar, philly car share) info
  • Multi-Lingual Apps - show transit information in other languages
  • Augemented Reality - hold up your phone and get transit info layerd on
  • Events (ex: eventful.com) and Transit Mashup - search events and how to get there
  • Multi-Route Information - for those who can use mutliple routes/modes to get from place to place

Real-Time Data (New)

SEPTA locations API- This api takes in 4 paramters a latitude(required), longitude(required), type(optional), radius(optional) to return all SEPTA locations from a geographical point within a radius that is measured in miles.

Types: [bus_stops,rail_stations,perk_locations,trolley_stops,sales_locations]

Note: For radius it is a decimal value so .5 is acceptable for half a mile.

JSONP OR JSON compatiable. For JSONP add &callback=?

Additonal Notes: More infomation about sales and perk locations are embedded inside the arrays. Notifed as perk_data or sales_data.

http://www3.septa.org/hackathon/locations/get_locations.php?lon=-75.33299748&lat=40.11043326&radius=3
Sample Jquery:
$.ajax({
url: "http://www3.septa.org/hackathon/locations/get_locations.php?lon=-75.161&lat=39.95205&callback=?",
dataType: "jsonp",
success: function(data){
$.each(data, function(i,item){
var locname =item.location_name;
if( item.location_type== 'perk_locations');
{
if(item.perk_data != null)
alert(item.perk_data.perk_id + ' ' +item.perk_data.perk_name);
}
});
}
});


Real-Time Data

Real-time Data is not yet available for the Broad Street Line (Subway), Market Frankford Line (EL), and Norristown High Speed Line (Rt. 100)....we're really sorry it's not available, but we're working on getting it!

System Status: Suspensions, Alerts, Detours and Advisories (json/jsonp)

System Status Web Page

Param(s): Route/Line Name (optional)
Will show if there is an alert, advisory, or detour:
http://www3.septa.org/hackathon/Alerts/

JSONP Example(s)
http://www3.septa.org/hackathon/Alerts/?callback=?

Adivosry, Alert, Detour Messages:

All Alerts Messages
http://www3.septa.org/hackathon/Alerts/get_alert_data.php?req1=all

Single Alerts Messages
http://www3.septa.org/hackathon/Alerts/get_alert_data.php?req1=bus_route_1

JSONP Example
http://www3.septa.org/hackathon/Alerts/get_alert_data.php?req1=all&callback=?


Regional Rail: TrainView (json, web)

TrainView Web Page

Regional Rail Trainview Feed (json)

Regional Rail Trains on a Google Map

Regional Rail Trains on a System Map. There's bugs in how a few point get rendered. The area's in orange are "Dark Territory" the data in those locations is an estimate at best and that goes for above json data as well. End users should understand that the data can be unreliable. We're wroking to get reliable data from Amtrak.

Regional Rail: Next to Arrive (json)

Next to Arrive Web Page

Param(s): Start Station / End Station / Number of Results (optional)
http://www3.septa.org/hackathon/NextToArrive/Airport%20Terminal%20B/Ardmore/10

JSONP Example
http://www3.septa.org/hackathon/NextToArrive/?req1=Airport%20Terminal%20B&req2=Ardmore&req3=10&callback=?

Bus/Trolley: Locations (json)

TransitView Web Page

Param(s): Route Number or Letter. Lettered routes in caps.
http://www3.septa.org/hackathon/TransitView/17
JSONP Example
http://www3.septa.org/hackathon/TransitView/?route=20&callback=?

Bus: Detours (json)

Bus Detours Web Page - deprecated

Param(s): Route (optional)
All Detours for all routes:
http://www3.septa.org/hackathon/BusDetours/

Detour By Route:
http://www3.septa.org/hackathon/BusDetours/2

JSONP Example
http://www3.septa.org/hackathon/BusDetours/?req1=2&callback=?

@SEPTA Twitter Posts (json)

SEPTA Twitter Accounts Web Page

@SEPTA Account Param(s): Number of posts
http://www3.septa.org/hackathon/Twitter/2

Current Travel Alerts (html) - deprecated

Current Travel Alerts. HTML only sorry, scrape & grep on div then strong
http://www.septa.org/realtime/alert.html

Static Data (Schedules, Stops, GIS)

GTFS Schedules (zip/gtfs)

http://www2.septa.org/developer/download.php

Regional Rail: Route Trace (kml)

Single KML file of the Regional Rail (kml)

Bus/Trolley: Route Trace (kml)

Param(s): Route Number or Letter. Lettered routes in caps.
http://www3.septa.org/transitview/kml/17.kml

Regional Rail: Schedules by Train Number (json)

Param: Train Number
http://www3.septa.org/hackathon/RRSchedules/458
JSONP Example
http://www3.septa.org/hackathon/RRSchedules/?req1=458&callback=?

Bus/Trolley: Schedules (json)
Parms(s): ?req1=stop_id req2=route (optional) req3=(i or o) (for inbound/outbound)optional req=6 number of results(optional)
http://www3.septa.org/hackathon/BusSchedules/
JSONP Example
http://www3.septa.org/hackathon/BusSchedules/?req1=17842&req2=17&req3=i&req6=7&callback=?

Bus/Trolley: Stops By Route - unsorted (json)

Param(s): Route Number or Letter. Lettered routes in caps.
http://www3.septa.org/hackathon/Stops/23
JSONP Example
http://www3.septa.org/hackathon/Stops/?req1=23&callback=?

Bus/Trolley: SMS Schedules by Stop (text /n delimited)

Param(s): StopID / RouteID (optional) / DirectionID (i=inbound, o=outbound, optional when applicable)
http://www3.septa.org/sms/17842/17/o/

RSS Feeds

Press Releases
http://www.septa.org/rss/releases.xml

News Bites (w/ error)
http://www.septa.org/rss/news.xml

Sustainability Journal Entries (with errors)
http://www.septa.org/rss/sustain.xml

Travel Alerts (by mode)
http://www2.septa.org/rss/alerts/index.xml

Elevator Outages
http://www2.septa.org/rss/elevators/index.xml

Bus Detours
http://www2.septa.org/rss/detours/index.xml

Links/Resources

Event info, Web versions of the above, etc.

Apps For Septa: http://www.appsforsepta.org/
PennApps20120: http://2012s.pennapps.com/
TransitView (Bus/Trolley Locations): http://www3.septa.org/transitview
Next To Arrive (Regional Rail Departures): http://app.septa.org/nta/
SMS Schedules: http://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: http://www.septa.org/realtime/alert.html
Elevator Status: http://www2.septa.org/elevators/
Bus Detours: http://septa.org/realtime/index.html
TrainView: html pda mobile

Contact SEPTA Team

SEPTAdev Google Group
SEPTAdev Twitter
SEPTAdev Email