The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Google::Directions::Response::Leg - An leg of a journey within a route

SYNOPSIS

    my $first_route = shift( @{ $response->routes } );
    my @legs = @{ $first_route->legs };
    ...

ATTRIBUTES

See API documentation here for details.

distance $integer Distance is always in meters
duration $integer Duration is always in seconds
end_address $string
end_location Google::Directions::Response::Coordinates
start_address $string
start_location Google::Directions::Response::Coordinates
steps ArrayRef of Google::Directions::Response::Step

AUTHOR

Robin Clarke, <perl at robinclarke.net>

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.