NAME

Map::Tube::Glasgow - Interface to the Glasgow tube map

SYNOPSIS

use Map::Tube::Glasgow;
my $tube = Map::Tube::Glasgow->new();

my $route = $tube->get_shortest_route('Cowcaddens', 'Bridge Street');

print "Route: $route\n";

DESCRIPTION

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.

METHODS

CONSTRUCTOR

use Map::Tube::Glasgow;
my $tube = Map::Tube::Glasgow->new;

This will read the tube information from the shared file glasgow-map.xml, which is part of the distribution.

ERRORS

If something goes wrong, maybe because the map information file was corrupted, the constructor will die.

AUTHOR

Gisbert W. Selke, TapirSoft Selke & Selke GbR.

COPYRIGHT AND LICENCE

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.

SEE ALSO

Map::Tube, Map::Tube::GraphViz.