WWW::Velib::Trip

WWW::Velib::Trip is a Perl module that contains details of a single trip made on the Velib system.
Download

WWW::Velib::Trip Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • David Landgren
  • Publisher web site:
  • http://search.cpan.org/~dland/

WWW::Velib::Trip Tags


WWW::Velib::Trip Description

WWW::Velib::Trip is a Perl module that contains details of a single trip made on the Velib system. WWW::Velib::Trip is a Perl module that contains details of a single trip made on the Velib system.SYNOPSIS 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"; }METHODSmake 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.from Name of the station of departure.to Name of the station of arrival.date The date the trip took place (in dd/mm/yyyy format).duration 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.cost The cost of the trip. Trips that take 30 minutes or less are free. After that, the price goes up astronomically! Requirements: · Perl


WWW::Velib::Trip Related Software