Google::Directions - Query directions from the google maps directions API
Version 0.09
An interface to Google Maps Directions API V3.
More details about what the API can do can be found on the API website
use Google::Directions::Client; my $goog = Google::Directions::Client->new(); my $response = $goog->directions( origin => '25 Thompson Street, New York, NY, United States', destination => '34 Lafayette Street, New York, NY, United States', );
Warning: This causes occasional errors due to partial content being returned... I'm not sure what the root cause for this is... :(
https://maps.googleapis.com
/maps/api/directions/json
Returns a Google::Directions::Response
See the API documentation here for details
Robin Clarke, <perl at robinclarke.net>
<perl at robinclarke.net>
Please report any bugs or feature requests to bug-google-directions at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Google-Directions. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-google-directions at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Google::Directions::Client
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Google-Directions
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Google-Directions
CPAN Ratings
http://cpanratings.perl.org/d/Google-Directions
Search CPAN
http://search.cpan.org/dist/Google-Directions/
Copyright 2012 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 Google::Directions::Types, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Google::Directions::Types
CPAN shell
perl -MCPAN -e shell install Google::Directions::Types
For more information on module installation, please visit the detailed CPAN module installation guide.