From 9ad2a5fa1c813e50ab287d60789fccfa1b9e5281 Mon Sep 17 00:00:00 2001
From: Birte Kristina Friesel <derf@finalrewind.org>
Date: Sat, 10 Aug 2024 20:20:27 +0200
Subject: Add KVB backend

---
 lib/Travel/Status/DE/HAFAS.pm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

(limited to 'lib/Travel/Status/DE/HAFAS.pm')

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',
-- 
cgit v1.2.3