| 1 | package Google::Directions::Response::Route; | ||
| 2 | 3 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 3 | ▶ | use Google::Directions::Types qw/:all/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 3 | ▶ | use Google::Directions::Response::Leg; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 3 | ▶ | use Google::Directions::Response::Bounds; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 3 | ▶ | use Google::Directions::Response::Polyline; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | =head1 NAME | ||
| 9 | |||
| 10 | Google::Directions::Response::Route - An individual route suggestion | ||
| 11 | |||
| 12 | =head1 SYNOPSIS | ||
| 13 | |||
| 14 | my $first_route = shift( @{ $response->routes } ); | ||
| 15 | ... | ||
| 16 | |||
| 17 | =head1 ATTRIBUTES | ||
| 18 | |||
| 19 | See API documentation L<here|http://code.google.com/apis/maps/documentation/directions/#Routes> for details. | ||
| 20 | |||
| 21 | =over 4 | ||
| 22 | |||
| 23 | =item I<copyrights> String defining copyright details | ||
| 24 | |||
| 25 | =item I<legs> ArrayRef of L<Google::Directions::Response::Leg> | ||
| 26 | |||
| 27 | =item I<bounds> L<Google::Directions::Response::Bounds> | ||
| 28 | |||
| 29 | =item I<summary> A String summary of the route | ||
| 30 | |||
| 31 | =item I<warnings> An ArrayRef of any warnings which occurred | ||
| 32 | |||
| 33 | =item I<waypoint_order> ArrayRef | ||
| 34 | |||
| 35 | =item I<overview_polyline> L<Google::Directions::Response::Polyline> | ||
| 36 | |||
| 37 | =back | ||
| 38 | |||
| 39 | =cut | ||
| 40 | |||
| 41 | 3 | has 'copyrights' => ( is => 'ro', isa => 'Str', | |
| 42 | required => 1, | ||
| 43 | ); | ||
| 44 | |||
| 45 | 3 | has 'legs' => ( is => 'ro', isa => ArrayRefOfLegs, | |
| 46 | required => 1, | ||
| 47 | coerce => 1, | ||
| 48 | ); | ||
| 49 | |||
| 50 | 3 | has 'bounds' => ( is => 'ro', isa => BoundsClass, | |
| 51 | required => 1, | ||
| 52 | coerce => 1, | ||
| 53 | ); | ||
| 54 | |||
| 55 | 3 | has 'summary' => ( is => 'ro', isa => 'Str' ); | |
| 56 | 3 | has 'warnings' => ( is => 'ro', isa => 'ArrayRef' ); | |
| 57 | 3 | has 'waypoint_order' => ( is => 'ro', isa => 'ArrayRef' ); | |
| 58 | |||
| 59 | 3 | has 'overview_polyline' => ( is => 'ro', isa => PolylineClass, | |
| 60 | coerce => 1, | ||
| 61 | ); | ||
| 62 | |||
| 63 | 3 | 1; | |
| 64 | |||
| 65 | =head1 AUTHOR | ||
| 66 | |||
| 67 | Robin Clarke, C<< <perl at robinclarke.net> >> | ||
| 68 | |||
| 69 | =head1 LICENSE AND COPYRIGHT | ||
| 70 | |||
| 71 | Copyright 2012 Robin Clarke. | ||
| 72 | |||
| 73 | This program is free software; you can redistribute it and/or modify it | ||
| 74 | under the terms of either: the GNU General Public License as published | ||
| 75 | by the Free Software Foundation; or the Artistic License. | ||
| 76 | |||
| 77 | See http://dev.perl.org/licenses/ for more information. | ||
| 78 | |||
| 79 | =cut | ||