Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Map-Metro CPAN distribution.

Report information
The Basics
Id: 100895
Status: resolved
Priority: 0/
Queue: Map-Metro

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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
This is a bug (it broke two of my maps). I pushed the other fixes in 0.1801, but I'll look into this later today. On Sat Dec 13 11:11:14 2014, SREZIC wrote: Show quoted text
> 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
Fixed in 0.1802. On Sat Dec 13 11:40:27 2014, CSSON wrote: Show quoted text
> This is a bug (it broke two of my maps). I pushed the other fixes in > 0.1801, but I'll look into this later today. > > On Sat Dec 13 11:11:14 2014, SREZIC wrote:
> > 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