From 563feae6991aaaa0bf3247d8e16ad5a078d7db7c Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sat, 10 Aug 2024 11:39:57 +0200 Subject: Add BVG endpoint via https://github.com/public-transport/transport-apis --- lib/Travel/Status/DE/HAFAS.pm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'lib/Travel') diff --git a/lib/Travel/Status/DE/HAFAS.pm b/lib/Travel/Status/DE/HAFAS.pm index 19d633c..e8b55a5 100644 --- a/lib/Travel/Status/DE/HAFAS.pm +++ b/lib/Travel/Status/DE/HAFAS.pm @@ -130,6 +130,29 @@ my %hafas_instance = ( lang => 'deu', }, }, + BVG => { + stopfinder => 'https://bvg-apps-ext.hafas.de/bin/ajax-getstop.exe', + mgate => 'https://bvg-apps-ext.hafas.de/bin/mgate.exe', + name => 'Berliner Verkehrsbetriebe', + productbits => [qw[s u tram bus]], + languages => [qw[de en]], + request => { + client => { + type => 'WEB', + id => 'VBB', + v => 10002, + name => 'webapp', + l => 'vs_webapp', + }, + ext => 'BVG.1', + ver => '1.72', + auth => { + type => 'AID', + aid => 'dVg4TZbW8anjx9z' . 'tPwe2uk4LVRi9wO', + }, + lang => 'deu', + }, + }, CMTA => { stopfinder => 'https://capmetro.hafas.cloud/bin/ajax-getstop.exe', mgate => 'https://capmetro.hafas.cloud/bin/mgate.exe', -- cgit v1.2.3