Skip Menu |

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

Report information
The Basics
Id: 100672
Status: rejected
Priority: 0/
Queue: Map-Tube

People
Owner: MANWAR [...] cpan.org
Requestors: SKIM [...] cpan.org
Cc:
AdminCc:

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



Subject: Problem with recursion get_shortest_route()
Hello, I create Map::Tube::Sofia module and i have a problem with recursion. See example in attachment. Regards, Michal Špaček
Subject: foo.pl
#!/usr/bin/env perl # Pragmas. use strict; use warnings; # Modules. use Encode qw(decode_utf8 encode_utf8); use Map::Tube::Sofia; # Object. my $obj = Map::Tube::Sofia->new; # Get route. my $route = $obj->get_shortest_route(decode_utf8('Люлин'), decode_utf8('Ломско шосе')); # Print out type. print "Route: ".encode_utf8($route)."\n";
Hi, I can straight away tell you that the map is incorrect. If you look at the xml data, the station id "A05" is linked "A04", "A06", "B12" and "B14". However the station id "B14" is not declared anywhere. One more issue, since the station id "A04" is linked to "B12", I would expect the station id "B12" linked back to "A04", which is not the case. As per the map data, the station id "B12" is only linked to "B11". Can you please sort the map data and see if this fix the issue? If you still have trouble then please do get back to me and I will look into it further. Don't worry we will together resolve the issue asap. Thanks for using my code. Best Regards, Mohammad S Anwar
Dne Út 02.pro.2014 15:49:50, MANWAR napsal(a): Hi, Show quoted text
> I can straight away tell you that the map is incorrect. If you look at > the xml data, the station id "A05" is linked "A04", "A06", "B12" and > "B14". However the station id "B14" is not declared anywhere. One more > issue, since the station id "A04" is linked to "B12", I would expect > the station id "B12" linked back to "A04", which is not the case. As > per the map data, the station id "B12" is only linked to "B11". > > Can you please sort the map data and see if this fix the issue?
Ooops.. Sorry for inconvenience, that was my issue. https://github.com/tupinek/Map-Tube-Sofia/commit/dfd7588376b270ea8c4f07261df34835a3bbfd04 Show quoted text
> Thanks for using my code.
Thanks for your code :-) M.