WWW::ProximoBus - A simple client library for the ProximoBus API.
my $proximo = WWW::ProximoBus->new(); my $agencies = $proximo->agencies(); my $agency = $agencies->{items}[0]; my $routes = $proximo->routes($agency->{id}); for my $route (@{$routes->{items}}) { print $route->{id}; }
WWW::ProximoBus is a Perl library implementing an interface to the ProximoBus API.
ProximoBus is a simple alternative API for NextBus' publicly-available data. Read more about it at http://proximobus.appspot.com/docs.html .
From the ProximoBus documentation:
This API is provided in the hope that it is useful, but there are no availability guarantees nor any warranty about the accuracy of the provided data. Use of this data is at the risk of the user.
The author reserves the right to deny access to ProximoBus to anyone at any time and for any reason. While backward compatibility will be preserved as much as possible, the author reserves the right to change any aspect of the provided API at any time for any reason and with no notice.
Sam Kimbrel (kimbrel@me.com)
Copyright 2011 - Sam Kimbrel
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
http://proximobus.appspot.com/ http://nextbus.com/
To install WWW::ProximoBus, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::ProximoBus
CPAN shell
perl -MCPAN -e shell install WWW::ProximoBus
For more information on module installation, please visit the detailed CPAN module installation guide.