| 1 | package Geo::JSON::FeatureCollection; | ||
| 2 | |||
| 3 | 2 | our $VERSION = '0.007'; | |
| 4 | |||
| 5 | 2 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 2 | extends 'Geo::JSON::Base'; | |
| 7 | |||
| 8 | 2 | ▶ | use Carp; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 2 | ▶ | use Types::Standard qw/ ArrayRef HashRef /; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 2 | ▶ | use Geo::JSON::Types -types; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | 2 | ▶ | use Geo::JSON::Utils; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | |||
| 14 | 2 | has features => ( | |
| 15 | is => 'ro', | ||
| 16 | isa => Features, | ||
| 17 | coerce => Features->coercion, | ||
| 18 | required => 1 | ||
| 19 | ); | ||
| 20 | |||
| 21 | 1 | ▶ | sub all_positions { |
|
Subroutine
all_positions: called CC=1 SCAR=0.0
Pod
documented
| |||
| 22 | 1 | my $self = shift; | |
| 23 | |||
| 24 | 1 | return [ map { @{ $_->all_positions } } @{ $self->features } ]; | |
| 25 | } | ||
| 26 | |||
| 27 | 2 | 1; | |
| 28 | |||
| 29 | __END__ | ||