NAME

Map::Metro::Graph::Station - Information about a station

VERSION

Version 0.2405, released 2016-07-23.

DESCRIPTION

Stations represents actual stations, and are used both during the graph building phase and the navigational phase.

ATTRIBUTES

id

Int required read-only

name

Str required read/write

do_undiacritic

Bool optional, default: 1 read/write 0: Do not remove diacritics from station name.
      1: Do remove diacritics from station name.

alternative_names

ArrayRef [ Str ] optional, default is a coderef read/write

original_name

Maybe [ Str ] optional read-only

search_names

ArrayRef [ Str ] optional, default is a coderef read/write

connecting_stations

ArrayRef [ Station ] not in constructor read-only

lines

ArrayRef [ Line ] not in constructor read/write

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.