Subject: | line is has to be an number? |
Contrary to the documentation in Map::Metro::Plugin::Map it seems that the line id has to be a number. The following map does not work (with 0.1800):
--stations
Adenauerplatz
Wilmersdorfer Str.
--transfers
--lines
U7|U7|
--segments
U7|Adenauerplatz|Wilmersdorfer Str.
The result is:
$ /usr/perl5.20.0/bin/perl -Mblib -MMap::Metro::Hook /usr/perl5.20.0/bin/map-metro.pl route Berlin Adenauerplatz "Wilmersdorfer Str."
From Adenauerplatz to Wilmersdorfer Str.
========================================
*: Transfer to other line
+: Transfer to other station
However, if I change the line id from "U7" to "7", then things work:
$ /usr/perl5.20.0/bin/perl -Mblib -MMap::Metro::Hook /usr/perl5.20.0/bin/map-metro.pl route Berlin Adenauerplatz "Wilmersdorfer Str."
From Adenauerplatz to Wilmersdorfer Str.
========================================
-- Route 1 (cost 1) ----------
[ U7 ] Adenauerplatz
[ U7 ] Wilmersdorfer Str.
U7
*: Transfer to other line
+: Transfer to other station