projects
/
Geo-USCensus-Geocoding.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
switch to CSV API for better reliability, prepare 0.01 release
[Geo-USCensus-Geocoding.git]
/
Geocoding
/
Result.pm
1
package Geo::USCensus::Geocoding::Result;
2
3
use Moo; # just for attribute declaration
4
5
has 'is_match' => ( is => 'rw', default => 0 );
6
has [ 'content',
7
'match_level',
8
'address',
9
'state',
10
'county',
11
'tract',
12
'block',
13
'error_message',
14
'latitude',
15
'longitude'
16
] => ( is => 'rw', default => '' );
17
18
sub censustract {
19
my $self = shift;
20
return join('', $self->state, $self->county, $self->tract);
21
}
22
23
1;