The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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";

NOTES

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.

AUTHOR

Slaven Rezic

SEE ALSO

Map::Tube.