WWW::EFA - Interface to EFA sites (Elektronische Fahrplanauskunft)
Get location of public transport stops and connection details.
use WWW::EFA; my $efa = WWW::EFA->new(); ...
TODO: RCL 2012-01-22 document params/accessors
Queries the XSLT_DM_REQUEST method from the EFA server.
Queries the XSLT_TRIP_REQUEST2 method from the EFA server.
Queries the XML_STOPFINDER_REQUEST method from the EFA server.
Used to get an address from coordinates
Returns an ArrayRef of WWW::EFA::Location.
my $location = WWW::EFA::Location->new( coordinates => WWW::EFA::Coordinates->new( lat => 12.12345, lon => 48.12345, );
my( $address ) = $efa->stop_finder( location => $location, );
Queries the XML_COORD_REQUEST method from the EFA server. Returns an array reference of WWW::EFA::Location objects.
Give any valid combination from which a Location object may be completed (id, lat/lon, latitude/longitude, or location) and it will return a complete WWW::EFA::Location.
This can be handy in some contexts when you don't have a complete location object...
<perl at robinclarke.net>
Please report any bugs or feature requests to
bug-www-efa at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WWW-EFA. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
You can also look for information at:
Copyright 2011 Robin Clarke.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.