summaryrefslogtreecommitdiff
path: root/lib/Travel
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-03-29 09:13:20 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2024-03-29 09:13:20 +0100
commit07e0e2bc6721f5587e6fd3867765b238b2568e5f (patch)
treea603ff5c079e56abe3de7783aaad6473f7195479 /lib/Travel
parentda2a1e2e47bb278b6e83367b5d79c8981322a587 (diff)
Add AVV backend
Diffstat (limited to 'lib/Travel')
-rw-r--r--lib/Travel/Status/DE/HAFAS.pm33
1 files changed, 33 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/HAFAS.pm b/lib/Travel/Status/DE/HAFAS.pm
index 2794b19..48fd19b 100644
--- a/lib/Travel/Status/DE/HAFAS.pm
+++ b/lib/Travel/Status/DE/HAFAS.pm
@@ -26,6 +26,39 @@ our $VERSION = '5.06';
# {{{ Endpoint Definition
my %hafas_instance = (
+ AVV => {
+ stopfinder => 'https://auskunft.avv.de/bin/ajax-getstop.exe',
+ mgate => 'https://auskunft.avv.de/bin/mgate.exe',
+ name => 'Aachener Verkehrsverbund',
+ productbits => [
+ [ regio => 'region trains' ],
+ [ ic_ec => 'long distance trains' ],
+ [ ice => 'long distance trains' ],
+ [ bus => 'long distance busses' ],
+ [ s => 'sububrban trains' ],
+ [ u => 'underground trains' ],
+ [ tram => 'rams' ],
+ [ bus => 'busses' ],
+ [ bus => 'additional busses' ],
+ [ ondemand => 'on-demand services' ],
+ [ ferry => 'maritime transit' ]
+ ],
+ languages => [qw[de]],
+ request => {
+ client => {
+ id => 'AVV_AACHEN',
+ type => 'WEB',
+ name => 'webapp',
+ l => 'vs_avv',
+ },
+ ver => '1.26',
+ auth => {
+ type => 'AID',
+ aid => '4vV1AcH3' . 'N511icH',
+ },
+ lang => 'deu',
+ },
+ },
DB => {
stopfinder => 'https://reiseauskunft.bahn.de/bin/ajax-getstop.exe',
mgate => 'https://reiseauskunft.bahn.de/bin/mgate.exe',