EFA/Location.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 20 / 20 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« EFA/Line.pm ↑ Summary EFA/PartialRoute.pm »
1 package WWW::EFA::Location;
2 2 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 with 'WWW::EFA::Roles::Printable'; # provides string
4  
5 =head1 NAME
6  
7 WWW::EFA::Location - An instance of a location determined through an EFA interface
8  
9 =head1 VERSION
10  
11 Version 0.01
12  
13 =cut
14  
15 2 our $VERSION = '0.01';
16  
17 =head1 SYNOPSIS
18  
19 Location object acquired through an EFA interface
20  
21 use WWW::EFA::Location;
22  
23 my $location = WWW::EFA::Location->new();
24 ...
25  
26 =head1 ATTRIBUTES
27  
28 # TODO: RCL 2011-11-06 Document attributes
29  
30 =cut
31  
32 2 has 'id' => ( is => 'rw', isa => 'Int', );
33 2 has 'poi_id' => ( is => 'rw', isa => 'Int', );
34 2 has 'is_transfer_stop' => ( is => 'rw', isa => 'Bool', );
35 2 has 'street_id' => ( is => 'rw', isa => 'Int', );
36  
37 # Distance in meters
38 2 has 'distance' => ( is => 'rw', isa => 'Int', );
39 2 has 'type' => ( is => 'rw', isa => 'Str', );
40 # TODO: RCL 2011-08-20 normalizeLocationName for place/name
41 2 has 'locality' => ( is => 'rw', isa => 'Str', );
42 2 has 'name' => ( is => 'rw', isa => 'Str', );
43 2 has 'value' => ( is => 'rw', isa => 'Str', );
44 2 has 'map_name' => ( is => 'rw', isa => 'Str', );
45 2 has 'state' => ( is => 'rw', isa => 'Str', );
46 2 has 'usage' => ( is => 'rw', isa => 'Str', );
47  
48 2 has 'coordinates' => ( is => 'rw', isa => 'WWW::EFA::Coordinates' );
49  
50  
51 2 1;
52  
53 =head1 COPYRIGHT
54  
55 Copyright 2011, Robin Clarke, Munich, Germany
56  
57 =head1 AUTHOR
58  
59 Robin Clarke <perl@robinclarke.net>
« EFA/Line.pm ↑ Summary EFA/PartialRoute.pm »