Skip to content

mfontani/Map-Tube-Milan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

Map::Tube::Milan - Interface to the Milan tube map

VERSION

version 0.008

SYNOPSIS

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

   my $route = $tube->get_shortest_route('Romolo', 'Lambrate F.S.');

   print "Route: $route\n";

DESCRIPTION

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

METHODS

CONSTRUCTOR

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

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

json()

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

ERRORS

If something goes wrong, maybe because the map information file was corrupted, the constructor will die.

SEE ALSO

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

AUTHOR

Marco Fontani [email protected]

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by Marco Fontani [email protected].

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

About

Interface to the Milan tube map

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages