Southeastern Pennsylvania Transportation Authority Serving Bucks, Chester, Delaware, Montgomery, and Philadelphia Counties
NOTE: Real-time Data is not yet available for the Broad Street Line (Subway), Market Frankford Line (EL), Norristown High Speed Line (Rt. 100), and Subway-Surface Trolley's (when they are in the tunnel).
SEPTA System Locations (json/jsonp)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. Reference: SEPTA Pass Perks website and SEPTA Sales Locations.
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. The API is ordered by closest location. The distance field returned by the api will tell you how far you are from the supplied lat/lng in miles.
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.location_data != null)
alert(item.location_data.location_id + ' ' +item.location_data.location_name);
}
});
}
});
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=?
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.
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=?
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/Trolley Locations (WITH TRIP-ID'S)
http://www3.septa.org/hackathon/TransitView/trips.php?route=17
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 Accounts Web Page
@SEPTA Account Param(s): Number of posts
http://www3.septa.org/hackathon/Twitter/2
Current Travel Alerts. HTML only sorry, scrape & grep on div then strong
http://www.septa.org/realtime/alert.html
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
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=?
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=?
Param(s): StopID / RouteID (optional) / DirectionID (i=inbound, o=outbound, optional when applicable)
http://www3.septa.org/sms/17842/17/o/
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
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