summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE/URA.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-08-31 20:09:55 +0200
committerDaniel Friesel <derf@finalrewind.org>2016-08-31 20:09:55 +0200
commit9d2e61f236517a671600a761d1a79b28b630e52d (patch)
tree987d79cc494873cc0ee1e69a7c5b1e8cd8955dda /lib/Travel/Status/DE/URA.pm
parent8c728d4c5deefea17a7738d6dce6d7ffef3ca8b3 (diff)
aseag-m -> ura-m, add service selection parameters
Diffstat (limited to 'lib/Travel/Status/DE/URA.pm')
-rw-r--r--lib/Travel/Status/DE/URA.pm19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/URA.pm b/lib/Travel/Status/DE/URA.pm
index ea8ed69..7c03ff0 100644
--- a/lib/Travel/Status/DE/URA.pm
+++ b/lib/Travel/Status/DE/URA.pm
@@ -3,6 +3,7 @@ package Travel::Status::DE::URA;
use strict;
use warnings;
use 5.010;
+use utf8;
no if $] >= 5.018, warnings => 'experimental::smartmatch';
@@ -337,6 +338,24 @@ sub results {
return @results;
}
+# static
+sub get_services {
+ return (
+ {
+ ura_base => 'http://ivu.aseag.de/interfaces/ura',
+ ura_version => 1,
+ name => 'Aachener Stra├čenbahn und Energieversorgungs AG',
+ shortname => 'ASEAG',
+ },
+ {
+ ura_base => 'http://countdown.api.tfl.gov.uk/interfaces/ura',
+ ura_version => 1,
+ name => 'Transport for London',
+ shortname => 'TfL',
+ }
+ );
+}
+
1;
__END__