Find attached a new search for the ukjourney planner site. This has been
on my list for years so I am psyched to get it done. This new site
incorporated the old national rail site and also does buses. The search
is pretty powerful so should be a good addition for anyone uk based.
Tom.
search function=ukjrny
nameUK Public transport Journey Planner/name
categoryTravel/category
contributorTom Corcoran/contributor
linkhttp://journeyplanner.tfl.gov.uk/link
email/email
description
UK Public transport Journey Planner
div class=helpboxDescLabelsSwitches:/div
table class=helpboxDescTable
trtdMust use one of these to indicate type of departure :/tdtd
div
/oss - station or stopbr/
/opc - post codebr/
/oa - address
/opl - place of interest
/div
/td/tr
trtdMust use one of these to indicate type of destination :/tdtd
div
/dss - station or stopbr/
/dpc - post codebr/
/da - address
/dpl - place of interest
/div
/td/tr
trtdMust Indicate travel day :/tdtd
div
/day 0..[28,30,31]br/
/div
/td/tr
trtdMust Indicate travel month :/tdtd
div
/mth 1..12br/
/div
/td/tr
trtdMust Indicate travel hour :/tdtd
div
/hr 0..23br/
/div
/td/tr
trtdMust Indicate travel min :/tdtd
div
/day 0..59br/
/div
/td/tr
trtdIndicate arrival or departure :/tdtd
div
/arr (default)br/
/depbr/
/div
/td/tr
trtdUse today's date :/tdtd
div
/todaybr/
/div
/td/tr
trtdUse today's date and time :/tdtd
div
/now [number of hours in the future]br/
/div
/td/tr
/table
div class=helpboxDescLabelsExample:/div
table class=helpboxDescTable
tr
tdIn your LocalAliases.txt add something like : div/div
rail|ukjrny /oss staines /dss waterloo %sdiv/div
To check your journey on this route to depart :div/div
eg. at 20:30 on 3 March, type : rail /day 3 / mth 3 / hr 29 /min 30 /depdiv/div
rail /today / hr 29 /min 30div/div
rail /now 3
Also :div/div
rail|ukjrny /oss staines /dss waterloo /now %sdiv/div
rail 3
/td
/tr
/table
/description
form name=ukjrnyf
method=post
action=http://journeyplanner.tfl.gov.uk/user/XSLT_TRIP_REQUEST2;
input type=hidden name=language value=en /
input type=hidden name=sessionID value=0 /
input type=hidden name=requestID value=0 /
input type=hidden name=ptOptionsActive value=-1 /
input type=hidden name=execInst value=normal /
input type=hidden name=command value= /
input type=hidden name=selLanguage value=en /
input type=hidden name=type_origin value=stop /
input type=hidden name=name_origin value= /
input type=hidden name=nameState_origin value=notidentified /
input type=hidden name=place_origin value= /
input type=hidden name=type_destination value=stop /
input type=hidden name=name_destination value=Enter location /
input type=hidden name=nameState_destination value=notidentified /
input type=hidden name=place_destination value= /
input type=hidden name=place_destination value=value /
input type=hidden name=itdTripDateTimeDepArr value=dep /
input type=hidden name=itdDateDay value= /
input type=hidden name=itdDateYearMonth value= /
input type=hidden name=itdTimeHour value= /
input type=hidden name=itdTimeMinute value= /
/form
script![CDATA[
function ukjrny(q)
{
function ReturnYearMonth(year, month)
{
// month needs to be zero padded
var todaym = 0 + month;
todaym = todaym.substring(todaym.length-2);
return [year,todaym].join('');
}
function DoToday()
{
var today = new Date();
document.ukjrnyf.itdDateDay.value = today.getDate();
document.ukjrnyf.itdDateYearMonth.value = ReturnYearMonth(today.getYear(),today.getMonth()+1);
}
if( nullArgs(ukjrny,q) )
return false;
else
{
var switch_list = new Array( oss,opc,oa,opl,dss,dpc,da,dpl,day,mth,arr,dep,hr,min,today,now);
var args = parseArgsEx( q, switch_list );
if( args.switches.length 0 )
for( var j=0; jargs.switches.length; j++ ) {
switch( args.switches[j].name ) {
// TODO : language has not been implemented
//case en: document.ukjrnyf.selLanguage.value = en; break;
//case de: document.ukjrnyf.selLanguage.value = de; break;
//case fr: document.ukjrnyf.selLanguage.value = fr; break;
//case it: