Map::Tube::Hongkong - interface to the Hongkong MTR map.
version 0.03
It currently provides functionality to find the shortest route between the two given stations.
use Map::Tube::Hongkong; my $tube = Map::Tube::Hongkong->new;
This method expects two parameters START and END station name. Station names are case insensitive. The station sequence from START to END is returned. use Map::Tube::Hongkong; my $tube = Map::Tube::Hongkong->new; my $route = $tube->get_shortest_route('Yau Ma Tei', 'Mei Foo'); print "Route: $route\n";
The script has not yet optimize to reduce the number of line transitions. For example, normally, the quickest route from Kowloon Tong to Yau Ma Tei is simply travelled through the Kwun Tong Line. However, the current script displays the following suggestion:
If you ask the reverse - its suggestion of how to get from Yau Ma Tei to Kowloon Tong, the script gives a reasonable suggestion:
Map::Tube.
https://github.com/E7-87-83/Map-Tube-Hongkong
FUNG Cheok Yin <fungcheokyin@gmail.com>
Mohammad S Anwar <mohammad.anwar@yahoo.com>
This is free software, licensed under: The Artistic License 2.0 (GPL Compatible)
To install Map::Tube::Hongkong, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Map::Tube::Hongkong
CPAN shell
perl -MCPAN -e shell install Map::Tube::Hongkong
For more information on module installation, please visit the detailed CPAN module installation guide.