NAME
Transport::AU::PTV::Routes - a collection of routes on the Victorian Public Transport Network.
VERSION
version 0.02
NAME
Transport::AU::PTV::Routes - a collection of Melbourne public transport routes (train, tram, bus, etc).
Synopsis
my $routes = Transport::AU::PTV->new({ ...})->routes;
my $train_routes = $
Description
This object is a collection of routes on the Victorian Public Transport network. It's a child object of Transport::AU::PTV::Collecton, and inherits all of its methods.
Methods
new
my $routes = Transport::AU::PTV::Routes->new( Transport::AU::PTV::APIRequest->new({...}), \%args );
Takes a Transport::AU::PTV::APIRequest object and returns a list of routes available on the Melbourne PTV network. %args
can be:
() - the entire list of routes is retrieved.
( name => 'partial name' )
- filter on a partial match of the route name.
AUTHOR
Greg Foletta <greg@foletta.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2018 by Greg Foletta.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.