From c16e8ca7ab01db1321d407a8eba212440b0c97c9 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Wed, 4 Mar 2015 12:10:04 -0800 Subject: switch to CSV API for better reliability, prepare 0.01 release --- Geocoding/Result.pm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Geocoding/Result.pm (limited to 'Geocoding/Result.pm') 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; -- cgit v1.2.1