diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-03-28 11:31:36 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-03-28 11:31:36 +0200 |
commit | 26d8ae1c395c5eb2f650503a2e3a97d182df0f60 (patch) | |
tree | 5b670c8108f8d9da578188ee96af00e4f346b5c8 /lib/Travel/Status | |
parent | 598f19db911f0cd1f3755785ade02de7bf51e82e (diff) |
efa-m, EFA: Accept "stopID" stop type
Diffstat (limited to 'lib/Travel/Status')
-rw-r--r-- | lib/Travel/Status/DE/EFA.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Travel/Status/DE/EFA.pm b/lib/Travel/Status/DE/EFA.pm index 25d3e15..e1c8edf 100644 --- a/lib/Travel/Status/DE/EFA.pm +++ b/lib/Travel/Status/DE/EFA.pm @@ -34,8 +34,8 @@ sub new { if ( not( $opt{name} ) ) { confess('You must specify a name'); } - if ( $opt{type} and not( $opt{type} ~~ [qw[stop address poi]] ) ) { - confess('type must be stop, address or poi'); + if ( $opt{type} and not( $opt{type} ~~ [qw[stop stopID address poi]] ) ) { + confess('type must be stop, stopID, address, or poi'); } if ( not $opt{efa_url} ) { @@ -706,7 +706,7 @@ E<lt>derf+efa@finalrewind.orgE<gt>. Name of the place/city -=item B<type> => B<address>|B<poi>|B<stop> +=item B<type> => B<address>|B<poi>|B<stop>|B<stopID> Type of the following I<name>. B<poi> means "point of interest". Defaults to B<stop> (stop/station name). |