summaryrefslogtreecommitdiff
path: root/lib/Travel
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2014-08-03 23:08:27 +0200
committerDaniel Friesel <derf@finalrewind.org>2014-08-03 23:08:27 +0200
commit9e453dec999ac7fd5fc7b526bb7fe04d9c20112e (patch)
tree22943f30cfb55d73b7074e6c068801a65083e9c7 /lib/Travel
parent23b5098a8528ae7c5ad5299ce2e108699f96e9fc (diff)
add --discover option and get_efa_urls method
Diffstat (limited to 'lib/Travel')
-rw-r--r--lib/Travel/Routing/DE/EFA.pm51
1 files changed, 51 insertions, 0 deletions
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<new>. 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<efa_url>), the second describes the entity to which this URL belongs.
+
+=back
+
=head1 DIAGNOSTICS
When encountering an error, Travel::Routing::DE::EFA throws a