| 1 | package Geo::JSON::Point; | ||
| 2 | |||
| 3 | 5 | our $VERSION = '0.007'; | |
| 4 | |||
| 5 | # ABSTRACT: object representing a geojson Point | ||
| 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 Carp; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | 5 | ▶ | use Geo::JSON::Types -types; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | |||
| 15 | 5 | has '+coordinates' => ( isa => Position ); | |
| 16 | |||
| 17 | 4 | ▶ | before compute_bbox => sub { |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 18 | 4 | croak "Can't compute_bbox with a single position"; | |
| 19 | 5 | }; | |
| 20 | |||
| 21 | 1 | ▶ | sub all_positions { [ shift->coordinates ] } |
|
Subroutine
all_positions: called CC=1 SCAR=0.0
Pod
documented
| |||
| 22 | |||
| 23 | 5 | 1; | |
| 24 | |||
| 25 | __END__ | ||