diff options
author | Mark Wells <mark@freeside.biz> | 2015-03-04 12:10:04 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2015-03-04 12:10:04 -0800 |
commit | c16e8ca7ab01db1321d407a8eba212440b0c97c9 (patch) | |
tree | 91129c285ec04914f2f33198cde83a69900016e5 /Geocoding/Result.pm | |
parent | 83646ffc2d229a706bdf3f90bf3cc8834c03106f (diff) |
switch to CSV API for better reliability, prepare 0.01 release
Diffstat (limited to 'Geocoding/Result.pm')
-rw-r--r-- | Geocoding/Result.pm | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Geocoding/Result.pm b/Geocoding/Result.pm new file mode 100644 index 0000000..e0e271a --- /dev/null +++ b/Geocoding/Result.pm @@ -0,0 +1,23 @@ +package Geo::USCensus::Geocoding::Result; + +use Moo; # just for attribute declaration + +has 'is_match' => ( is => 'rw', default => 0 ); +has [ 'content', + 'match_level', + 'address', + 'state', + 'county', + 'tract', + 'block', + 'error_message', + 'latitude', + 'longitude' + ] => ( is => 'rw', default => '' ); + +sub censustract { + my $self = shift; + return join('', $self->state, $self->county, $self->tract); +} + +1; |