Robin Clarke > Google-Directions-0.09 > Google::Directions::Response

Download:
Google-Directions-0.09.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Source  

NAME ^

Google::Directions::Response - The response to a directions request

SYNOPSIS ^

    my $response = $goog->directions(
        origin      => '25 Thompson Street, New York, NY, United States',
        destination => '34 Lafayette Street, New York, NY, United States',
        );
    if( $response->status ne 'OK' ){
        die( "Status: " . $response->status );
    }
    ...

ATTRIBUTES ^

status A text representation of the success of the query.

See API documentation here for details.

routes An ArrayRef of Google::Directions::Response::Route objects

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.

syntax highlighting: