summaryrefslogtreecommitdiff
path: root/lib/Travel
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-03-31 16:50:03 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-03-31 16:50:03 +0200
commit0c57f93284293bca09c7e6ee54f0139cc5715afb (patch)
tree3ceab29a283e7c65dce7659671d53084e89ad473 /lib/Travel
parent6b575af0e63f4df5d6dd5e217aa2e7ae3bc114ed (diff)
Add BART service
Diffstat (limited to 'lib/Travel')
-rw-r--r--lib/Travel/Status/DE/HAFAS.pm32
1 files changed, 31 insertions, 1 deletions
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',