NAME
Map::Tube::Berlin - interface to the Berlin S- and U-Bahn map
DESCRIPTION
It currently provides functionality to find the shortest route between the two given stations. The map contains both U-Bahn and S-Bahn stations.
CONSTRUCTOR
use Map::Tube::Berlin;
my $tube = Map::Tube::Berlin->new;
METHODS
get_shortest_route(START, END)
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";
BUGS
It's too slow. Using A* would probably improve the performance.
AUTHOR
Slaven Rezic