| 1 | package Geo::JSON::Polygon; | ||
| 2 | |||
| 3 | 5 | our $VERSION = '0.007'; | |
| 4 | |||
| 5 | # ABSTRACT: object representing a geojson Polygon | ||
| 6 | |||
| 7 | 5 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 5 | extends 'Geo::JSON::Base'; | |
| 9 | 5 | with 'Geo::JSON::Role::Geometry'; | |
| 10 | |||
| 11 | 5 | ▶ | use Geo::JSON::Types -types; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | 5 | has '+coordinates' => ( isa => Polygon ); | |
| 14 | |||
| 15 | 4 | ▶ | sub all_positions { |
|
Subroutine
all_positions: called CC=1 SCAR=0.0
Pod
documented
| |||
| 16 | 4 | my $self = shift; | |
| 17 | |||
| 18 | 4 | return [ map { @{$_} } @{ $self->coordinates } ]; | |
| 19 | } | ||
| 20 | |||
| 21 | 5 | 1; | |
| 22 | |||
| 23 | __END__ | ||