From 0c57f93284293bca09c7e6ee54f0139cc5715afb Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 31 Mar 2024 16:50:03 +0200 Subject: Add BART service --- lib/Travel/Status/DE/HAFAS.pm | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) (limited to 'lib/Travel/Status') diff --git a/lib/Travel/Status/DE/HAFAS.pm b/lib/Travel/Status/DE/HAFAS.pm index 7dbb1f6..1e0aa21 100644 --- a/lib/Travel/Status/DE/HAFAS.pm +++ b/lib/Travel/Status/DE/HAFAS.pm @@ -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', -- cgit v1.2.3