Skip to content
Commits on Source (2)
......@@ -163,9 +163,11 @@ sub parse_mot_options {
if ($desc) {
for my $mot ( @{ $desc->{productbits} } ) {
if ( ref($mot) eq 'ARRAY' ) {
printf( "%-10s %s\n", @{$mot} );
if ( $mot->[0] ne '_' ) {
printf( "%-10s %s\n", @{$mot} );
}
}
else {
elsif ( $mot ne '_' ) {
say $mot;
}
}
......
......@@ -37,7 +37,7 @@ my %hafas_instance = (
[ bus => 'long distance busses' ],
[ s => 'sububrban trains' ],
[ u => 'underground trains' ],
[ tram => 'rams' ],
[ tram => 'trams' ],
[ bus => 'busses' ],
[ bus => 'additional busses' ],
[ ondemand => 'on-demand services' ],
......@@ -59,6 +59,36 @@ my %hafas_instance = (
lang => 'deu',
},
},
BART => {
stopfinder => 'https://planner.bart.gov/bin/ajax-getstop.exe',
mgate => 'https://planner.bart.gov/bin/mgate.exe',
name => 'Bay Area Rapid Transit',
productbits => [
[ _ => undef ],
[ _ => undef ],
[ cc => 'cable cars' ],
[ regio => 'regional trains' ],
[ _ => undef ],
[ bus => 'busses' ],
[ ferry => 'maritime transit' ],
[ bart => 'BART trains' ],
[ tram => 'trams' ],
],
languages => [qw[en]],
request => {
client => {
id => 'BART',
type => 'WEB',
name => 'webapp',
},
ver => '1.40',
auth => {
type => 'AID',
aid => 'kEwHkFUC' . 'IL500dym',
},
lang => 'en',
},
},
DB => {
stopfinder => 'https://reiseauskunft.bahn.de/bin/ajax-getstop.exe',
mgate => 'https://reiseauskunft.bahn.de/bin/mgate.exe',
......@@ -83,6 +113,39 @@ my %hafas_instance = (
},
},
},
IE => {
stopfinder =>
'https://journeyplanner.irishrail.ie/bin/ajax-getstop.exe',
mgate => 'https://journeyplanner.irishrail.ie/bin/mgate.exe',
name => 'Iarnród Éireann',
productbits => [
[ _ => undef ],
[ ic => 'national trains' ],
[ _ => undef ],
[ regio => 'regional trains' ],
[ dart => 'DART trains' ],
[ _ => undef ],
[ luas => 'LUAS trams' ],
],
languages => [qw[en ga]],
request => {
client => {
id => 'IRISHRAIL',
type => 'IPA',
name => 'IrishRailPROD-APPSTORE',
v => '4000100',
os => 'iOS 12.4.8',
},
ver => '1.33',
auth => {
type => 'AID',
aid => 'P9bplgVCG' . 'nozdgQE',
},
lang => 'en',
},
salt => 'i5s7m3q9' . 'z6b4k1c2',
micmac => 1,
},
NAHSH => {
mgate => 'https://nah.sh.hafas.de/bin/mgate.exe',
stopfinder => 'https://nah.sh.hafas.de/bin/ajax-getstop.exe',
......