From f78b589ffc5874106aa8af2d028d6602b2287ea0 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 29 Jul 2015 20:11:43 +0200 Subject: add service list and --service option (not 100% tested and documented yet) --- lib/Travel/Status/DE/EFA.pm | 76 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) (limited to 'lib/Travel/Status') diff --git a/lib/Travel/Status/DE/EFA.pm b/lib/Travel/Status/DE/EFA.pm index 73a05fb..53d2119 100644 --- a/lib/Travel/Status/DE/EFA.pm +++ b/lib/Travel/Status/DE/EFA.pm @@ -486,6 +486,67 @@ sub results { return @results; } +# static +sub get_efa_urls { + return ( + { + url => 'http://www.ding.eu/ding3/XSLT_DM_REQUEST', + name => 'Donau-Iller Nahverkehrsverbund', + shortname => 'DING', + }, + { + url => 'http://efa.ivb.at/ivb/XSLT_DM_REQUEST', + name => 'Innsbrucker Verkehrsbetriebe', + shortname => 'IVB', + }, + { + url => 'http://efa.svv-info.at/sbs/XSLT_DM_REQUEST', + name => 'Salzburger Verkehrsverbund', + shortname => 'SVV', + }, + { + url => 'http://efa.vor.at/wvb/XSLT_DM_REQUEST', + name => 'Verkehrsverbund Ost-Region', + shortname => 'VOR', + }, + { + url => 'http://efaneu.vmobil.at/vvv/XSLT_DM_REQUEST', + name => 'Vorarlberger Verkehrsverbund', + shortname => 'VVV', + }, + { + url => 'http://fahrplan.verbundlinie.at/stv/XSLT_DM_REQUEST', + name => 'Verkehrsverbund Steiermark', + shortname => 'Verbundlinie', + }, + { + url => 'http://www.linzag.at/static/XSLT_DM_REQUEST', + name => 'Linz AG', + shortname => 'LinzAG', + }, + { + url => 'http://212.114.197.7/vgnExt_oeffi/XML_DM_REQUEST', + name => 'Verkehrsverbund Grossraum Nuernberg', + shortname => 'VGN', + }, + { + url => 'http://efa.vrr.de/vrr/XSLT_DM_REQUEST', + name => 'Verkehrsverbund Rhein-Ruhr', + shortname => 'VRR', + }, + { + url => 'http://app.vrr.de/standard/XML_DM_REQUEST', + name => 'Verkehrsverbund Rhein-Ruhr (alternative)', + shortname => 'VRR2', + }, + { + url => 'http://www2.vvs.de/vvs/XSLT_DM_REQUEST', + name => 'Verkehrsverbund Stuttgart', + shortname => 'VVS', + }, + ); +} + 1; __END__ @@ -598,6 +659,21 @@ describing one line servicing the selected station. Returns a list of Travel::Status::DE::EFA::Result(3pm) objects, each one describing one departure. +=item Travel::Status::DE::EFA::get_efa_urls() + +Returns a list of known EFA entry points. Each list element is a hashref with +the following elements. + +=over + +=item B: service URL as passed to B + +=item B: Name of the entity operating this service + +=item B: Short name of the entity + +=back + =back =head1 DIAGNOSTICS -- cgit v1.2.3