Loading lib/Travel/Status/DE/DBRIS/Location.pm +1 −1 Original line number Diff line number Diff line Loading @@ -23,7 +23,7 @@ sub new { # station search results include lat/lon keys in JSON; route entries do not my ( $lon, $lat ); if ( $json->{id} =~ m{ [@]X= (?<lon> \d+) [@]Y= (?<lat> \d+) }x ) { if ( $json->{id} =~ m{ [@]X= (?<lon> -? \d+) [@]Y= (?<lat> -? \d+) }x ) { $lat = $+{lat} / 1e6; $lon = $+{lon} / 1e6; } Loading Loading
lib/Travel/Status/DE/DBRIS/Location.pm +1 −1 Original line number Diff line number Diff line Loading @@ -23,7 +23,7 @@ sub new { # station search results include lat/lon keys in JSON; route entries do not my ( $lon, $lat ); if ( $json->{id} =~ m{ [@]X= (?<lon> \d+) [@]Y= (?<lat> \d+) }x ) { if ( $json->{id} =~ m{ [@]X= (?<lon> -? \d+) [@]Y= (?<lat> -? \d+) }x ) { $lat = $+{lat} / 1e6; $lon = $+{lon} / 1e6; } Loading