WWW:LiveDepartureBoards

Presents an OO interface to the National Rail Live Departure Boards (LDB's) Website (http://www.livedepartureboards.co.uk)
Download

WWW:LiveDepartureBoards Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Greg McCarroll and Adam Trickett
  • Publisher web site:
  • http://search.cpan.org/~gmccar/

WWW:LiveDepartureBoards Tags


WWW:LiveDepartureBoards Description

Presents an OO interface to the National Rail Live Departure Boards (LDB's) Website (http://www.livedepartureboards.co.uk) Queries and then screenscrapes the LDB's website, making a guess as to what day the given arrival or departure time is on and constructing a DateTime object as part of the details returned. WWW:LiveDepartureBoards can also filter by the stations you are interested in.METHODSnew({station_code => 'XXX'})Takes a 3 letter station code such as PNE (Penge East) and returns the corresponding object. You can find out what your local station's code is by visiting the website mentioned above.arrivals()Returns an array of hashes with arrival details as follows, origin - the origin of the train time - time in the form of 'hh:mm' datetime - a DateTime object that has been tied to the best guess of what day the train arrives/departs on status - the status of the trainAlso a reference to a list can be supplied that will act as a filter.departures()Returns an array of hashes with departure details as follows, destination - the origin of the train time - time in the form of 'hh:mm' datetime - a DateTime object that has been tied to the best guess of what day the train arrives/departs on status - the status of the trainAlso a reference to a list can be supplied that will act as a filter.destination({station_code => 'XXX'})Returns an array of hashes with departure details as follows, station_code - the final destination name of the train time - time in the form of 'hh:mm' datetime - a DateTime object that has been tied to the best guess of what day the train arrives/departs on status - the status of the train Requirements: · Perl


WWW:LiveDepartureBoards Related Software