TfL Journey Planner

109 views
Skip to first unread message

Christopher Osborne

unread,
Feb 16, 2010, 9:51:45 AM2/16/10
to Rewired State
Seeing as Rewired State is coming out of hibernation, I thought I
would share something that has been of interest to people before. A
long while back I was sniffing aroud the TfL Journey Planner and found
a few things:

A request to the Journey Planner (with quite a few variables selected)
looks like this:

http://journeyplanner.tfl.gov.uk/user/XSLT_TRIP_REQUEST2?language=en&sessionID=0&requestID=0&ptOptionsActive=1&itOptionsActive=1&imparedOptionsActive=1&ptAdvancedOptions=1&advOptActive_2=1&advOpt_2=1&execInst=normal&command=&itdLPxx_request=&itdLPxx_view=&itdLPxx_tubeMap=&calculateDistance=1&calculateCO2=1&name_origin=HAMMERSMITH+%28HAM+%26+CITY+LINE%29&nameState_origin=notidentified&nameDefaultText_origin=start&type_origin=stop&place_origin=London&name_destination=St+Margarets&nameState_destination=notidentified&nameDefaultText_destination=end&type_destination=stop&place_destination=London&itdTripDateTimeDepArr=dep&itdDateDay=01&itdDateYearMonth=201003&itdTimeHour=8&itdTimeMinute=0&Submit=Search&routeType=LEASTTIME&name_via=Enter+location+%28optional%29&nameState_via=notidentified&nameDefaultText_via=Enter+location+%28optional%29&type_via=stop&place_via=London&placeDefaultText_via=London&includedMeans=checkbox&inclMOT_11=1&inclMOT_0=on&inclMOT_1=on&inclMOT_2=on&trITMOTvalue101=60&trITMOTvalue=20&trITMOT=100&changeSpeed=slow

Usefully, to get the underlying xml its very simple indeed, simply
substitute "XSLT_TRIP_REQUEST2?" with "XML_TRIP_REQUEST2?" :

http://journeyplanner.tfl.gov.uk/user/XML_TRIP_REQUEST2?language=en&sessionID=0&requestID=0&ptOptionsActive=1&itOptionsActive=1&imparedOptionsActive=1&ptAdvancedOptions=1&advOptActive_2=1&advOpt_2=1&execInst=normal&command=&itdLPxx_request=&itdLPxx_view=&itdLPxx_tubeMap=&calculateDistance=1&calculateCO2=1&name_origin=HAMMERSMITH+%28HAM+%26+CITY+LINE%29&nameState_origin=notidentified&nameDefaultText_origin=start&type_origin=stop&place_origin=London&name_destination=St+Margarets&nameState_destination=notidentified&nameDefaultText_destination=end&type_destination=stop&place_destination=London&itdTripDateTimeDepArr=dep&itdDateDay=01&itdDateYearMonth=201003&itdTimeHour=8&itdTimeMinute=0&Submit=Search&routeType=LEASTTIME&name_via=Enter+location+%28optional%29&nameState_via=notidentified&nameDefaultText_via=Enter+location+%28optional%29&type_via=stop&place_via=London&placeDefaultText_via=London&includedMeans=checkbox&inclMOT_11=1&inclMOT_0=on&inclMOT_1=on&inclMOT_2=on&trITMOTvalue101=60&trITMOTvalue=20&trITMOT=100&changeSpeed=slow

Have fun, but be gentle, their servers are so flakey they can't handle
much traffic.

James Darling

unread,
Feb 16, 2010, 10:12:07 AM2/16/10
to rewire...@googlegroups.com
Very nice find. Could this be used to Londonerise traintimes.org.uk?


--
You received this message because you are subscribed to the Google Groups "Rewired State" group.
To post to this group, send email to rewire...@googlegroups.com.
To unsubscribe from this group, send email to rewiredstate...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rewiredstate?hl=en.




--
James Darling

@abscond | 07811407085 | http://abscond.org

Rude? I loosely follow http://five.sentenc.es
Reply all
Reply to author
Forward
0 new messages