Map::Tube::Node - Defines the node for Map::Tube
Version 0.05
Here is sample map
1 -------- 2 / \ / \ / \ / \ / \ / \ 0 ------ 6 ------- 3 \ / \ / \ / \ / \ / \ / 5 -------- 4 / / / 7 \ \ \ 8
which can be defined as below:
{ 0 => [1,5,6], 1 => [0,2,6], 2 => [1,3,6], 3 => [2,4,6], 4 => [3,5,6], 5 => [0,4,6,7], 6 => [0,1,2,3,4,5], 7 => [5,8], 8 => [7],};
This is the core method of the module, where we actually define the relationship among the diffrerent nodes. I have taken extra care to depict the relationship. However I would be more than happy to receieve any suggestion to improve the logic. Please note "Transport for London" is the owner of the data used here.
This loads all the nodes defined. Currently covers only Bakerloo, Central, Circle, District, Hammersmith & City, Jubilee and Victoria. I have been working hard to cover all the remaining (Metropolitan, Northern, Picadilly and Waterloo & City). Please note this is still a very experimental in nature.
Mohammad S Anwar, <mohammad.anwar@yahoo.com>
<mohammad.anwar@yahoo.com>
Please report any bugs or feature requests to bug-map-tube@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Map-Tube. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-map-tube@rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Map::Tube::Node
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Map-Tube
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Map-Tube
CPAN Ratings
http://cpanratings.perl.org/d/Map-Tube
Search CPAN
http://search.cpan.org/dist/Map-Tube/
Copyright 2010 Mohammad S Anwar.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Map::Tube, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Map::Tube
CPAN shell
perl -MCPAN -e shell install Map::Tube
For more information on module installation, please visit the detailed CPAN module installation guide.