TfL's Journey Planner is a great resource for figuring out the best way of getting from place to place in London.
I've created a tool the speeds up the process. Here's a bit of background...
It can be a bit of a pain to fill in the Journey Planner form every time. Usually, I'm wanting to figure out how to get from my home address to some place and I also always adjust my walking speed to Fast.
One day I thought, wouldn't it be great if I could just highlight the destination address on a website, press a button and get the journey planner results without having to fill in all that other info. Or if I could just press a button and get the form already filled in.
My solution was a bookmarklet. A clever little bookmark that dose all the form filling for me.
I later came up with a greasemonkey script that turns post codes on websites into clickable links that show me journey planner results from my house .
I've had both working for a while and wanted to share them with you. The tricky part is that the bookmarklet and the greasemonkey script are customised to me - my home address and my walking speed.
So here's what I've done...
My first web tool
I've created a tool that generates the bookmarklet and the script based on your home post code and walking speed.
Check it out here.
In reply to a comment
I got a comment from Tom which I want to reply to but the comment system is messing with my URLs so here's my reply:
If there's a journey you take regularly you can build a URL that will take you to the journey planner results for that journey. You can then bookmark it a go to it whenever you want an up-to-date plan. It's not quite as good as getting an email with the info in it but it might be useful. Here's what the URL would look like (look for the square brackets to see what you need to customise:
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&name_origin=[STARTING POSTCODE WITH A + SIGN INSTEAD OF A SPACE eg EC1+2DU]&nameState_origin=notidentified&nameDefaultText_origin=start&place_origin=London&type_origin=locator&name_destination=[ENDING POSTCODE WITH A + SIGN INSTEAD OF A SPACE]&nameState_destination=notidentified&nameDefaultText_destination=end&place_destination=London&type_destination=locator&itdTripDateTimeDepArr=dep&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&inclMOT_4=on&inclMOT_5=on&inclMOT_7=on&inclMOT_9=on&trITMOTvalue101=60&trITMOTvalue=20&trITMOT=100&changeSpeed=fast
For the mobile version just change journeyplanner.tfl.gov.uk to m.tfl.gov.uk/mt/journeyplanner.tfl.gov.uk in the URL (looks odd but it's right!)
Also have a look at my greasemonkey script that makes logging into twitter a little bit quicker.
Tags: bookmarklet, greasemonkey, guide, Technology, travel


