WWW::Velib::Trip - Details of a single trip made on the Velib system
This document describes version 0.03 of WWW::Velib::Trip, released 2007-11-13.
use WWW::Velib; my $v = WWW::Velib->new(login => '0000123456', password => '1234'); $v->get_month; for my $trip ($v->trips) { print "Journey from ", $trip->{from}, " to ", $trip->{to}, " took", $trip->{duration}, "minutes.\n"; }
Make a W::V::Trip object (usually called on your behalf from WWW::Velib). Requires six parameters, date (in dd/mm/yyyy format, from station name, to station name, trip duration in hours, trip duration in additional minutes and cost.
WWW::Velib
Name of the station of departure.
Name of the station of arrival.
The date the trip took place (in dd/mm/yyyy format).
The duration of the trip, in minutes. As an example, for a trip that took 1 hour and 26 minutes, 86 minutes will be returned.
The cost of the trip. Trips that take 30 minutes or less are free. After that, the price goes up astronomically!
David Landgren, copyright (C) 2007. All rights reserved.
http://www.landgren.net/perl/
If you (find a) use this module, I'd love to hear about it. If you want to be informed of updates, send me a note. You know my first name, you know my domain. Can you guess my e-mail address?
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install WWW::Velib, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Velib
CPAN shell
perl -MCPAN -e shell install WWW::Velib
For more information on module installation, please visit the detailed CPAN module installation guide.