Map::Tube::Glasgow - Interface to the Glasgow tube map
use Map::Tube::Glasgow; my $tube = Map::Tube::Glasgow->new(); my $route = $tube->get_shortest_route('Cowcaddens', 'Bridge Street'); print "Route: $route\n";
This module allows to find the shortest route between any two given tube stations in Glasgow. All interesting methods are provided by the role Map::Tube.
use Map::Tube::Glasgow; my $tube = Map::Tube::Glasgow->new();
The only argument, xml, is optional; if specified, it should be a code ref to a function that returns either the path the XML map file, or a string containing this XML content. The default is the path to glasgow-map.xml that is a part of this distribution. For further information see Map::Tube.
xml
This read-only accessor returns whatever was specified as the XML source at construction.
If something goes wrong, maybe because the map information file was corrupted, the constructor will die.
Gisbert W. Selke, TapirSoft Selke & Selke GbR.
The data for the XML file were taken from an image in the English-language Wikipedia in the entry "Glasgow Subway". It is CC BY-SA 2.0 David Arthur, 2006. The module itself is free software; you may redistribute and/or modify it under the same terms as Perl itself.
Map::Tube, Map::Tube::GraphViz.
To install Map::Tube::Glasgow, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Map::Tube::Glasgow
CPAN shell
perl -MCPAN -e shell install Map::Tube::Glasgow
For more information on module installation, please visit the detailed CPAN module installation guide.