23 Jul 2016 11:45:41 UTC
- Distribution: Map-Metro
- Module version: 0.2405
- Source (raw)
- Browse (raw)
- How to Contribute
- Repository (git clone)
- Issues (0)
- Testers (2147 / 1 / 23)
- KwaliteeBus factor: 1
- 72.93% Coverage
- License: perl_5
- Perl: v5.10.0
- Activity24 month
- Download (51.71KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- COPYRIGHT AND LICENSE
Map::Metro::Cmd - The command line interface
Version 0.2405, released 2016-07-23.
#* General form $ map-metro.pl <command> [ <city> ] [ <arguments> ] #* Prints the route using the PrettyPrinter hook plugin $ map-metro.pl route Stockholm 'Sundbybergs centrum' T-Centralen
This collection of commands exposes several parts of the Map::Metro api.
If a command takes
$city, it is mandatory. Normally it should be a module name in the
Map::Metro::Plugin::Mapnamespace (but only the significant part is necessary). If, however, it contains att least one dot it is assumed to be a file path to a map file. The map file is parsed via Map::Metro::Shim.
Does route for all stations in the
Map::Metro::Plugin::Map::$citymap. This gets exponentially slower with bigger maps.
Lists all installed maps on the system.
Creates a png via GraphViz2.
If into=$file is given the png is saved with that filename, otherwise a timestamped file will be saved in the current directory.
Lists all lines in the
Map::Metro::Plugin::Map::$cityinto a Map::Tube ready xml-file. The file is saved in the current working directory with a timestamped filename.
Mandatory. The starting station, can be either a station id (integer), or a station name (string). Must be of the same type as
$to. Use quotes if the name contains spaces.
Mandatory. The finishing station, can be either a station id (integer), or a station name (string). Must be of the same type as
$from. Use quotes if the name contains spaces.
Searches for routes in the
Lists all stations in the
Map::Metro::Plugin::Map::$citymap. This displays station ids for easy search with route.
It's there if you need it...
Erik Carlsson <email@example.com>
This software is copyright (c) 2016 by Erik Carlsson.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.