From d37d400761ef47cac90dfa1c87ed067e32ee6b64 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 24 Dec 2013 17:04:49 +0100 Subject: add get_stop_by_name to documentation --- Changelog | 2 +- lib/Travel/Status/DE/URA.pm | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index 9471a62..971919f 100644 --- a/Changelog +++ b/Changelog @@ -1,7 +1,7 @@ git HEAD * Remove fuzzy matching from constructor / ->results API. Use - the new get_stop_by_name function instead (returns all matching stop). + the new get_stop_by_name function instead (returns all matching stops). Update aseag-m accordingly Travel::Status::DE::URA 0.01 - Sun Dec 22 2013 diff --git a/lib/Travel/Status/DE/URA.pm b/lib/Travel/Status/DE/URA.pm index 99c0132..dd199a6 100644 --- a/lib/Travel/Status/DE/URA.pm +++ b/lib/Travel/Status/DE/URA.pm @@ -301,6 +301,13 @@ the server. In case of an HTTP request error, returns a string describing it. If none occured, returns undef. +=item $status->get_stop_by_name(I<$stopname>) + +Returns a list of stops matching I<$stopname>. For instance, if the stops +"Aachen Bushof", "Eupen Bushof", "Brand" and "Brandweiher" exist, the +parameter "bushof" will return "Aachen Bushof" and "Eupen Bushof", while +"brand" will only return "Brand". + =item $status->results(I<%opt>) Returns a list of Travel::Status::DE::URA::Result(3pm) objects, each describing -- cgit v1.2.3