From c7f28c4a85c8f98c90761274050680b185d0f99a Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 13 Aug 2010 17:25:15 +0200 Subject: Some documentation --- lib/WWW/Efa.pm | 92 +++++++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 88 insertions(+), 4 deletions(-) diff --git a/lib/WWW/Efa.pm b/lib/WWW/Efa.pm index 38eeecf..fc3ae37 100644 --- a/lib/WWW/Efa.pm +++ b/lib/WWW/Efa.pm @@ -319,6 +319,78 @@ sub parse_pretty { return($elements); } +=head1 METHODS + +=head2 new(%conf) + +Returns a new WWW::Efa object and sets up its POST data via %conf. + +Valid hash keys and their values are: + +=over + +=item B => B<[> IB<,> I [ B<,> I ] B<]> + +Mandatory. Sets the origin, which is the start of the journey. +I is optional and may be one of B (default), B
(street +and house number) or B ("point of interest"). + +=item B => B<[> IB<,> I [ B<,> I ] B<]> + +Mandatory. Sets the destination, see B. + +=item B => B<[> IB<,> I [ B<,> I ] B<]> + +Optional. Specifies a intermediate stop which the resulting itinerary must +contain. See B for arguments. + +=item B => I + +Sets the journey end time + +=item B|B