WWW::EFA - Interface to EFA sites (Elektronische Fahrplanauskunft)
Get location of public transport stops and connection details.
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...
Robin Clarke, <perl at robinclarke.net>
<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.
bug-www-efa at rt.cpan.org
You can find documentation for this module with the perldoc command.
You can also look for information at:
Github - this is my preferred path to receive input on the project!
RT: CPAN's request tracker (report bugs here)
AnnoCPAN: Annotated CPAN documentation
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.
To install WWW::EFA, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.