From 1217eda3c844423206332cd5eac74930150756d0 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Thu, 4 Apr 2024 14:06:56 +0200 Subject: Add BLS service --- lib/Travel/Status/DE/HAFAS.pm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) 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', -- cgit v1.2.3