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.