trimet gtfs and webservices 8-23-2008

41
Exposing Transit Data as Services and Data Feeds BYO iPhone: Transport Applications for the Web CUTA Youth Summit August 23, 2008 Frank Purcell – Software Engineer TriMet of Portland, Oregon Updated August 21, 2008

Upload: trimet

Post on 15-Jan-2015

1.345 views

Category:

Technology


0 download

DESCRIPTION

 

TRANSCRIPT

Page 1: TriMet GTFS and WebServices 8-23-2008

Exposing Transit Data as Services and Data Feeds

BYO iPhone: Transport Applications for the Web

CUTA Youth Summit August 23, 2008

Frank Purcell – Software Engineer

TriMet of Portland, Oregon

Updated August 21, 2008

Page 2: TriMet GTFS and WebServices 8-23-2008

Elevator Pitch

Pitch: You too can be a Transit Developer

Exposing transit data is a win–win—win for TriMet, our customers and transit developers

Customer Benefit: Our customers get applications that TriMet couldn’t build or wouldn’t think to build

TriMet Benefit: accurate information

Developer Benefit: access to information in an elegant & reliable way to power their applications

Page 3: TriMet GTFS and WebServices 8-23-2008

TriMet’s Developer Resources

began with TriMet General Manager request to

promote innovation and public transit

by providing resources to an

emerging creative class

developer.trimet.org

Can we leverage existing software development

by exposing data to the public?

Page 4: TriMet GTFS and WebServices 8-23-2008

TriMet Developer Resources for Customer Information

Promotes use of transit and information related to transit

TriMet Developer Resources for Customer Information

Promotes use of transit and information related to transit

Page 5: TriMet GTFS and WebServices 8-23-2008

Direct access to

Real-Time Datavia web services

Direct access to

Real-Time Datavia web services

Page 6: TriMet GTFS and WebServices 8-23-2008

Direct access to most current

Schedule Datain common open format

Direct access to most current

Schedule Datain common open format

“GTFS is a lightweight, open format that provides a common, easy way to

exchange transit data. You don't have to be Google™

to use it.”

Tim Moore, Bart

“GTFS is a lightweight, open format that provides a common, easy way to

exchange transit data. You don't have to be Google™

to use it.”

Tim Moore, Bart

Page 7: TriMet GTFS and WebServices 8-23-2008

Developers are

scraping schedule data off websites anyway.

GTFS offers a more stable solution with Terms of Use.

Developers are

scraping schedule data off websites anyway.

GTFS offers a more stable solution with Terms of Use.

Page 8: TriMet GTFS and WebServices 8-23-2008

Who is using Schedule Data

in the GTFS format?

Page 9: TriMet GTFS and WebServices 8-23-2008

Google Maps

Get Driving Directions ANDPublic Transit Directions

Google Maps

Get Driving Directions ANDPublic Transit Directions

Page 10: TriMet GTFS and WebServices 8-23-2008

TransitTrips

Sits on Google Transit Makes it easy to

save links to common trips

TransitTrips

Sits on Google Transit Makes it easy to

save links to common trips

Page 11: TriMet GTFS and WebServices 8-23-2008

Public Routes“…believes in allowing

public information to be shared openly by municipalities across the country in hopes of maximizing

travel efficiency and better

serving the greater public.”

Public Routes“…believes in allowing

public information to be shared openly by municipalities across the country in hopes of maximizing

travel efficiency and better

serving the greater public.”

Page 12: TriMet GTFS and WebServices 8-23-2008

Tranzit.caSchedules and Map Info for Google Android Devices using GTFS data

Developer’s motivation is to encourage more sustainable modes of transport.

Tranzit.caSchedules and Map Info for Google Android Devices using GTFS data

Developer’s motivation is to encourage more sustainable modes of transport.

Page 13: TriMet GTFS and WebServices 8-23-2008

Stop & Service Finder

Built on the GTFS – other agencies coming Finds all stops, buses & trains in an area

Stop & Service Finder

Built on the GTFS – other agencies coming Finds all stops, buses & trains in an area

Page 14: TriMet GTFS and WebServices 8-23-2008

Transit MapsDraws route lines using GTFS

Transit MapsDraws route lines using GTFS

Page 15: TriMet GTFS and WebServices 8-23-2008

Garmin StreetPilot“…TriMet responded responded, and pointed me to the GTFS developer site… by far the easiest experience I’ve had getting information from a

public agency.”

Brett Warden, TriMet Rider & Software Developer

Garmin StreetPilot“…TriMet responded responded, and pointed me to the GTFS developer site… by far the easiest experience I’ve had getting information from a

public agency.”

Brett Warden, TriMet Rider & Software Developer

Page 16: TriMet GTFS and WebServices 8-23-2008

GPS Wayfinding Devices

Sendero, TriMet & Google working to integrate GTFS

with POI Database

GPS Wayfinding Devices

Sendero, TriMet & Google working to integrate GTFS

with POI Database

Page 17: TriMet GTFS and WebServices 8-23-2008

TimeTable Publisher

Reads GTFS data

Generates all TriMet’s print & online TimeTables.

Online TimeTables have most up-to-date information (could

change weekly)

TimeTable Publisher

Reads GTFS data

Generates all TriMet’s print & online TimeTables.

Online TimeTables have most up-to-date information (could

change weekly)

Page 18: TriMet GTFS and WebServices 8-23-2008

Toronto’s myttc.caBuilt with an Open Source Trip Planner

GraphServer consumes GTFS.

Kieran & team are actively creatingGTFS data feed for Toronto.

Toronto’s myttc.caBuilt with an Open Source Trip Planner

GraphServer consumes GTFS.

Kieran & team are actively creatingGTFS data feed for Toronto.

Page 19: TriMet GTFS and WebServices 8-23-2008

My $0.02 CNAs a developer at a transit agency, tools like ATrain and GraphServer

are great. I look forward to using & contributing to these efforts.

My $0.02 CNAs a developer at a transit agency, tools like ATrain and GraphServer

are great. I look forward to using & contributing to these efforts.

ATrainCommunity built application.

Recently open-sourced trip engine.

ATrainCommunity built application.

Recently open-sourced trip engine.

Page 20: TriMet GTFS and WebServices 8-23-2008

Who is using TriMet’s Web Services

for Customer Information?

Page 21: TriMet GTFS and WebServices 8-23-2008

Customer Informationat Airport

Port of Portland’s Use of Data

Customer Informationat Airport

Port of Portland’s Use of Data

Page 22: TriMet GTFS and WebServices 8-23-2008

TriMet On My iPhone

Free Application for iPhoneTransit next arrival times

“At first I was just going to scrape the Trimet site to get the information. But

then I came to find out that Trimet actually has a really nice API to all their

tracking information!”

Matt King, TriMet Rider & Software Developer

TriMet On My iPhone

Free Application for iPhoneTransit next arrival times

“At first I was just going to scrape the Trimet site to get the information. But

then I came to find out that Trimet actually has a really nice API to all their

tracking information!”

Matt King, TriMet Rider & Software Developer

Page 23: TriMet GTFS and WebServices 8-23-2008

Portland Transport

Transit Surfer & Transit BoardNext arrival times for cell phones, handhelds,

full-size screens, text messaging

Portland Transport

Transit Surfer & Transit BoardNext arrival times for cell phones, handhelds,

full-size screens, text messaging

Page 24: TriMet GTFS and WebServices 8-23-2008

TrainCheck

Free SMS Services for Cell Phones

Access to transit next arrival times

TrainCheck

Free SMS Services for Cell Phones

Access to transit next arrival times

Page 25: TriMet GTFS and WebServices 8-23-2008

TransitCastPresents arrival times and locations

of buses that are approaching a selected stop

TransitCastPresents arrival times and locations

of buses that are approaching a selected stop

Page 26: TriMet GTFS and WebServices 8-23-2008

Opera Award WinnerTriMet Widget

free program for use on your desktop, mobile phone or TV

Opera Award WinnerTriMet Widget

free program for use on your desktop, mobile phone or TV

Page 27: TriMet GTFS and WebServices 8-23-2008

Future plans fordeveloper.trimet.org

Page 28: TriMet GTFS and WebServices 8-23-2008

Mobile Trip PlanningUsing my cell phone, I can

get public transit directions to the nearest pizza place from

my current location.

Current GPS Location, Current Time,Requested Event/Place

En Route Planned ItineraryTo Event/Place

Location-BasedService(LBS) Formatted

Return

FormattedRequest

WebService

API

TripPlanner

Trip Planner Web Service Example

TriMet builds the API and the applications are unlimited

Trip Planner Web Service Example

TriMet builds the API and the applications are unlimited

Page 29: TriMet GTFS and WebServices 8-23-2008

Web Service for TriMet Trip Planner

Access to Planned Trip Itineraries

Offers alternative to screen scraping for applications like Dadnab

Web Service for TriMet Trip Planner

Access to Planned Trip Itineraries

Offers alternative to screen scraping for applications like Dadnab

Page 30: TriMet GTFS and WebServices 8-23-2008

Who else is making their

data publicly accessible

and why?

Page 31: TriMet GTFS and WebServices 8-23-2008

Public Feeds PageBy making the GTFS data publicly

accessible, you can avoid addressing multiple and varied data requests on

an individual basis.

Public Feeds PageBy making the GTFS data publicly

accessible, you can avoid addressing multiple and varied data requests on

an individual basis.

Page 32: TriMet GTFS and WebServices 8-23-2008

DARTDallas Area Rapid Transit

Public Records Act Any person has a right to request

public data, and the public agency has

a responsibility to provide it.

DARTDallas Area Rapid Transit

Public Records Act Any person has a right to request

public data, and the public agency has

a responsibility to provide it.

Page 33: TriMet GTFS and WebServices 8-23-2008

Sacramento Regional Transit

GTFS file available for download

Sacramento Regional Transit

GTFS file available for download

Page 34: TriMet GTFS and WebServices 8-23-2008

Capital MetroAustin, Texas

“…is making stop and scheduledata available in several formats

including GTFS.”

Capital MetroAustin, Texas

“…is making stop and scheduledata available in several formats

including GTFS.”

Page 35: TriMet GTFS and WebServices 8-23-2008

OCTAOrange County, CA

Now offers 2 options to planyour trip online

OCTAOrange County, CA

Now offers 2 options to planyour trip online

Page 36: TriMet GTFS and WebServices 8-23-2008

Redwood Transit SystemHumboldt County, CA

GTFS file available for downloadUses Google Transit as

Agency Trip Planner

Redwood Transit SystemHumboldt County, CA

GTFS file available for downloadUses Google Transit as

Agency Trip Planner

Page 37: TriMet GTFS and WebServices 8-23-2008

BARTSan Francisco Bay

“We want to foster innovative new applications, reach a broader

audience and encourage more people

to choose BART.

…we just can't justify spending time on some of the things our

customers have asked for.”

BARTSan Francisco Bay

“We want to foster innovative new applications, reach a broader

audience and encourage more people

to choose BART.

…we just can't justify spending time on some of the things our

customers have asked for.”

Page 38: TriMet GTFS and WebServices 8-23-2008

TransPerthAustralia

TransPerthAustralia

Page 39: TriMet GTFS and WebServices 8-23-2008

http://davidpritchard.org Vancouver, BC

http://davidpritchard.org Vancouver, BC

Page 40: TriMet GTFS and WebServices 8-23-2008

Links

http://groups.google.com/group/transit-developers

http://code.google.com/p/googletransitdatafeed

http://code.google.com/p/googletransitdatafeed/wiki/PublicFeeds

http://graphserver.sourceforge.net

http://timetablepublisher.org

http://developer.trimet.org

http://myttc.ca

http://trip.atltransit.com

Page 41: TriMet GTFS and WebServices 8-23-2008

Thank You

For more information, please visit:developer.trimet.org