From 9e453dec999ac7fd5fc7b526bb7fe04d9c20112e Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 3 Aug 2014 23:08:27 +0200 Subject: add --discover option and get_efa_urls method --- lib/Travel/Routing/DE/EFA.pm | 51 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) (limited to 'lib') diff --git a/lib/Travel/Routing/DE/EFA.pm b/lib/Travel/Routing/DE/EFA.pm index 931b634..149dc8e 100644 --- a/lib/Travel/Routing/DE/EFA.pm +++ b/lib/Travel/Routing/DE/EFA.pm @@ -742,6 +742,45 @@ sub routes { return @{ $self->{routes} }; } +# static +sub get_efa_urls { + return ( + [ + 'http://efa.ivb.at/ivb/XSLT_TRIP_REQUEST2', + 'Innsbrucker Verkehsbetriebe' + ], + [ + 'http://efa.svv-info.at/sbs/XSLT_TRIP_REQUEST2', + 'Salzburger Verkehrsverbund' + ], + [ + 'http://efa.vor.at/wvb/XSLT_TRIP_REQUEST2', + 'Verkehrsverbund Ost-Region' + ], + [ + 'http://efaneu.vmobil.at/vvv/XSLT_TRIP_REQUEST2', + 'Vorarlberger Verkehrsverbund' + ], + [ + 'http://fahrplan.verbundlinie.at/stv/XSLT_TRIP_REQUEST2', + 'Verkehsverbund Steiermark' + ], + [ 'http://www.linzag.at/static/XSLT_TRIP_REQUEST2', 'Linz AG' ], + [ + 'http://212.114.197.7/vgnExt_oeffi/XML_TRIP_REQUEST2', + 'Verkehrsverbund Grossraum Nuernberb' + ], + [ + 'http://efa.vrr.de/vrr/XSLT_TRIP_REQUEST2', + 'Verkehrsverbund Rhein-Ruhr' + ], + [ + 'http://www2.vvs.de/vvs/XSLT_TRIP_REQUEST2', + 'Verkehrsverbund Stuttgart' + ], + ); +} + 1; __END__ @@ -957,6 +996,18 @@ The following methods act like the arguments to B. See there. =back +=head2 STATIC METHODS + +=over + +=item Travel::Status::DE::VRR::get_efa_urls() + +Returns a list of known EFA entry points. Each list element is a reference to +an array consisting of two strings. The first one is the URL (as passed to +B), the second describes the entity to which this URL belongs. + +=back + =head1 DIAGNOSTICS When encountering an error, Travel::Routing::DE::EFA throws a -- cgit v1.2.3