Transport for London

  • : Function ereg_replace() is deprecated in /mozdev/sandbox/php/include/globals.h on line 95.
  • : Function split() is deprecated in /mozdev/sandbox/drupal/drupal-5.22/modules/filter/filter.module on line 1206.
  • : Function split() is deprecated in /mozdev/sandbox/drupal/drupal-5.22/modules/filter/filter.module on line 1206.

I would like to suggest a plugin for the journey planner on tfl.gov.uk

Non-trivial

This is not so easy because it requires start and end fields... (and is POST too)
Having said which, I'm running two - one which does a destination post code and the other which does a destination station 'search'

You'll need something like this:

<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/" xmlns:os="http://a9.com/-/spec/opensearch/1.1/">
<os:ShortName>TfL - Post code
<os:Description>Maps | Transport for London
<os:InputEncoding>UTF-8
<os:Image width="16" height="16">data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABYklEQVQ4jaXTv0sCcRjHcf+pkPAQPKcgEBSHGzoQxX+ioT+g4PRbrkkQiKFLEK7HJW5iDXKegy4OnZDDDd0d9+PdEEWghukDz/IMLx4enk9CPrkmJYu9Wj65JnGcqXMk7dfHmTqJlCz2BlKy2Awo6j0P3VfebIc32+Gh+4qi3u8GXGo6vh8CEAQRQRAB4Pshl5r+N6BWWnhegON4aMLgNH/Laf4WTRg4jofnBaiV1nbg8WkMQO3meW3d2s0zAI9P483AcLQgjgFgNn/HtGys6RJrusS0bGbzdwDiGIajxTqwWn3wXd/Q7/o9W60+1oGzcgtzYgOgCYOCckep2qZUbVNQ7tCEAYA5sTkrtzbf4PyiB3ytmCs2f+a5YpPhaAHA+UVv+xGTaUF/MAfAdQPanRfanRdcNwCgP5iTTIvtwJFUR8o2uKrpWNMlYRgRhhHWdMlVTUfKNnb7xH+98sFhOjTOn9RjgL8nOHk7AAAAAElFTkSuQmCC
<os:Url type="text/html" method="POST" template="http://journeyplanner.tfl.gov.uk/user/XSLT_TRIP_REQUEST2">
  <os:Param name="language" value="en"/>
  <os:Param name="execInst" value=""/>
  <os:Param name="sessionID" value="0"/>
  <os:Param name="ptOptionsActive" value="-1"/>
  <os:Param name="place_origin" value="London"/>
  <os:Param name="place_destination" value="London"/>
  <os:Param name="name_origin" value="xxStartPostCodeHerexx"/>
  <os:Param name="type_origin" value="locator"/>
  <os:Param name="name_destination" value="{searchTerms}"/>
**Only one of these:
  <os:Param name="type_destination" value="locator"/>
  <os:Param name="type_destination" value="stop"/>
**
</os:Url>
</SearchPlugin>

Replace xxStartPostCodeHerexx as appropriate (or put a station and change type_origin) and delete one of the type_destinaion lines and surrounding starred lines
Save as eg tfl.xml and put in the searchplugins folder of your profile.

I could probably work something out that creates this on the fly if there was sufficient demand.
(Add to Search Bar gets close but I think I had to tweak it...)

And it used to be much better when you didn't have to specify post code / station, etc for the destination...