| 1 | package Geo::JSON::Feature; | ||
| 2 | |||
| 3 | 4 | our $VERSION = '0.007'; | |
| 4 | |||
| 5 | 4 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 4 | extends 'Geo::JSON::Base'; | |
| 7 | |||
| 8 | 4 | ▶ | use Carp; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 4 | ▶ | use Type::Utils qw( class_type ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 4 | ▶ | use Types::Standard qw/ Str Maybe HashRef /; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | 4 | ▶ | use Geo::JSON::Types -types; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | 4 | ▶ | use Geo::JSON::Utils; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | |||
| 15 | 4 | has id => ( is => 'ro', isa => Maybe [Str] ); | |
| 16 | |||
| 17 | 4 | has geometry => ( | |
| 18 | is => 'ro', | ||
| 19 | isa => Geometry, | ||
| 20 | coerce => Geometry->coercion, | ||
| 21 | required => 1 | ||
| 22 | ); | ||
| 23 | |||
| 24 | 4 | has properties => ( is => 'ro', isa => Maybe [HashRef] ); | |
| 25 | |||
| 26 | 6 | ▶ | sub all_positions { |
|
Subroutine
all_positions: called CC=1 SCAR=0.0
Pod
documented
| |||
| 27 | 6 | return shift->geometry->all_positions; | |
| 28 | } | ||
| 29 | |||
| 30 | 4 | 1; | |
| 31 | |||
| 32 | __END__ | ||