summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE/HAFAS.pm
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-08-10 20:20:27 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-08-10 20:20:27 +0200
commit9ad2a5fa1c813e50ab287d60789fccfa1b9e5281 (patch)
treeebd9404232538092c3d87955efff8c532b86a600 /lib/Travel/Status/DE/HAFAS.pm
parent4c9056d8aa1f4e5c804b116252a7ed189085435b (diff)
Add KVB backend
Diffstat (limited to 'lib/Travel/Status/DE/HAFAS.pm')
-rw-r--r--lib/Travel/Status/DE/HAFAS.pm29
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/HAFAS.pm b/lib/Travel/Status/DE/HAFAS.pm
index 0abad7c..3401793 100644
--- a/lib/Travel/Status/DE/HAFAS.pm
+++ b/lib/Travel/Status/DE/HAFAS.pm
@@ -247,6 +247,35 @@ my %hafas_instance = (
salt => 'i5s7m3q9' . 'z6b4k1c2',
micmac => 1,
},
+ KVB => {
+ mgate => 'https://auskunft.kvb.koeln/gate',
+ name => 'Kölner Verkehrs-Betriebe',
+ productbits => [
+ [ s => 'sub-urban trains' ],
+ [ tram => 'trams' ],
+ [ _ => undef ],
+ [ bus => 'buses' ],
+ [ ic => 'national trains' ],
+ [ regio => 'regional trains' ],
+ [ _ => undef ],
+ [ ondemand => 'taxi buses' ]
+ ],
+ request => {
+ client => {
+ id => 'HAFAS',
+ type => 'WEB',
+ name => 'webapp',
+ l => 'vs_webapp',
+ v => '154',
+ },
+ ver => '1.58',
+ auth => {
+ type => 'AID',
+ aid => 'Rt6foY5' . 'zcTTRXMQs',
+ },
+ lang => 'deu',
+ },
+ },
NAHSH => {
mgate => 'https://nah.sh.hafas.de/bin/mgate.exe',
stopfinder => 'https://nah.sh.hafas.de/bin/ajax-getstop.exe',