summaryrefslogtreecommitdiff
path: root/lib/Travel
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-04-04 14:06:56 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-04-04 14:06:56 +0200
commit1217eda3c844423206332cd5eac74930150756d0 (patch)
treeea7e7ce57028693e165bc11b13b2124b73be02f9 /lib/Travel
parent3099de370634cd61ced60dc90c29c54e2d7a696e (diff)
Add BLS service
Diffstat (limited to 'lib/Travel')
-rw-r--r--lib/Travel/Status/DE/HAFAS.pm35
1 files changed, 35 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/HAFAS.pm b/lib/Travel/Status/DE/HAFAS.pm
index 59c99c2..fd49287 100644
--- a/lib/Travel/Status/DE/HAFAS.pm
+++ b/lib/Travel/Status/DE/HAFAS.pm
@@ -95,6 +95,41 @@ my %hafas_instance = (
lang => 'en',
},
},
+ BLS => {
+ mgate => 'https://bls.hafas.de/bin/mgate.exe',
+ stopfinder => 'https://bls.hafas.de/bin/ajax-stopfinder.exe',
+ name => 'BLS AG',
+ time_zone => 'Europe/Zurich',
+ productbits => [
+ [ ice => 'long distance trains' ],
+ [ ic_ec => 'long distance trains' ],
+ [ ir => 'inter-regio trains' ],
+ [ regio => 'regional trains' ],
+ [ ferry => 'maritime transit' ],
+ [ s => 'suburban trains' ],
+ [ bus => 'busses' ],
+ [ fun => 'funicular / gondola' ],
+ [ _ => undef ],
+ [ tram => 'trams' ],
+ [ _ => undef ],
+ [ _ => undef ],
+ [ car => 'Autoverlad' ]
+ ],
+ languages => [qw[de fr it en]],
+ request => {
+ client => {
+ id => 'HAFAS',
+ type => 'WEB',
+ name => 'webapp',
+ },
+ ver => '1.46',
+ auth => {
+ type => 'AID',
+ aid => '3jkAncud78HSo' . 'qclmN54812A',
+ },
+ lang => 'deu',
+ },
+ },
CMTA => {
stopfinder => 'https://capmetro.hafas.cloud/bin/ajax-getstop.exe',
mgate => 'https://capmetro.hafas.cloud/bin/mgate.exe',