NAME

Map::Tube::SanFrancisco - Interface to the San Francisco rapid transport, underground, trams and cable cars

SYNOPSIS

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

	my $route = $tube->get_shortest_route( 'Embarcadero', 'SF Zoo');

    print "Route: $route\n";

DESCRIPTION

This module allows to find the shortest route between any two given tube or tram stations in San Francisco. All interesting methods are provided by the role Map::Tube.

METHODS

CONSTRUCTOR

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

The only argument, xml, is optional; if specified, it should be a code ref to a function that returns either the path the XML map file, or a string containing this XML content. The default is the path to sanfrancisco-map.xml that is a part of this distribution. For further information see Map::Tube.

xml()

This read-only accessor returns whatever was specified as the XML source at construction.

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 the relevant Wikipedia articles and verified using https://www.bart.gov and www.sfmta.com. Exchange stations were checked using https://www.openstreetmap.org. The module itself is free software; you may redistribute and/or modify it under the same terms as Perl itself.

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