Map::Tube::Berlin - interface to the Berlin S- and U-Bahn map
It currently provides functionality to find the shortest route between the two given stations. The map contains both U-Bahn and S-Bahn stations.
use Map::Tube::Berlin; my $tube = Map::Tube::Berlin->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::Berlin; my $tube = Map::Tube::Berlin->new; my $route = $tube->get_shortest_route('Zoologischer Garten', 'Alexanderplatz'); print "Route: $route\n";
The XML file was generated using data from the BBBike project. A Makefile rule build-map for regenerating the XML file exists (assuming that BBBike was cloned/extracted into $HOME/src/bbbike.
build-map
Slaven Rezic
Map::Tube.
To install Map::Tube::Berlin, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Map::Tube::Berlin
CPAN shell
perl -MCPAN -e shell install Map::Tube::Berlin
For more information on module installation, please visit the detailed CPAN module installation guide.