Why not adopt me?
NAME
Google::Directions - Query directions from the google maps directions API
VERSION
Version 0.09
DESCRIPTION
An interface to Google Maps Directions API V3.
More details about what the API can do can be found on the API website
SYNOPSIS
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',
);
ATTRIBUTES
- keep_alive Enable keep_alive for the user agent.
-
Warning: This causes occasional errors due to partial content being returned... I'm not sure what the root cause for this is... :(
- user_agent Define a custom LWP::UserAgent if you like.
- cache Define a Cache::FastMmap if you would like to have results cached for better performance
- base_url Default:
https://maps.googleapis.com
- api_path Default:
/maps/api/directions/json
- limit_path_length limit is documented at 2048, but errors occur at 2047.. Default: 2046
METHODS
directions
Returns a Google::Directions::Response
params
See the API documentation here for details
- origin $string
- destination $string
- mode $string (Default: 'driving')
- waypoints ArrayRef[$string] (optional)
- alternatives $boolean (Default: 0)
- avoid ArrayRef[$string] (optional)
- region $string (optional)
- sensor $boolean (Default: 0)
AUTHOR
Robin Clarke, <perl at robinclarke.net>
BUGS
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.
SUPPORT
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)
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
ACKNOWLEDGEMENTS
LICENSE AND COPYRIGHT
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.