NAME
Map::Metro::Graph::Station - Information about a station
VERSION
Version 0.2300, released 2016-01-14.
DESCRIPTION
Stations represents actual stations, and are used both during the graph building phase and the navigational phase.
ATTRIBUTES
id
Int | required | read-only |
Internal identification
name
Str | required | read/write |
The station's name, with any diacritics removed.
alternative_names
ArrayRef [ Str ] | optional, default is a coderef |
read/write |
All alternative names for the station given in the map file.
do_undiacritic
Bool | optional, default: 1 |
read/write | 0 : |
Do not remove diacritics from station name. |
1 : |
Do remove diacritics from station name. |
original_name
Maybe [ Str ] | optional | read-only |
The station's name as given in the map file.
search_names
ArrayRef [ Str ] | optional, default is a coderef |
read/write |
All search names for the station given in the map file.
connecting_stations
ArrayRef [ Station ] | not in constructor | read-only |
All stations one can travel to from this station without passing another station.
lines
ArrayRef [ Line ] | not in constructor | read/write |
All lines passing through this station.
METHODS
id()
Returns the internal station id. Do not depend on this between executions.
name()
Returns the station name given in the parsed map file.
lines()
Returns an array of all Lines passing through the station.
connecting_stations()
Returns an array of all Stations directly (on at least one line) connected to this station.
SOURCE
https://github.com/Csson/p5-Map-Metro
HOMEPAGE
https://metacpan.org/release/Map-Metro
AUTHOR
Erik Carlsson <info@code301.com>
COPYRIGHT AND LICENSE
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.