NAME

Google::Directions::Response::Step - An step of a leg of a journey

SYNOPSIS

my $first_route = shift( @{ $response->routes } );
foreach my $leg( @{ $first_route->legs } ){
    foreach my $step( @{ $leg->steps } ){
        printf "Duration: %s\n", $step->duration;
    }
}

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
html_instructions $string
travel_mode $string
polyline Google::Directions::Response::Polyline

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.