algorithm - How to represent street address ranges for geo location lookups? -
i have following type of inputs:
zone 1 => alabama street, 1 135, west side alabama street, 2 144, east side bahama square, 2 4 zone 2 => bahama square, 5 8 cecil street, 3 27
etc.
these data represent zones within area. small disctrict in city, defined couple of enclosing streets.
if i'm given geo location (latitude, longitude), how can map value zone in above context? it's obvious google maps lookup give me address, how proceed there? best way represent kind of data (address ranges) effective zone establishment?
(whoa, 3 questions within 1)
i'll take stab @ followup question. assuming streets 1 .. 6 in zone 1 major streets , zeta side street between these streets within address range.
my solution form shapefile zone , check if lat/lng of address check within shapefile. here's approach detail:
use reverse api lat/lng of each street endpoint (e.g., 1 w. alabama, 135 w. alabama, etc).
use these endpoints create polygon shape (shapefile) around zone.
use reverse api lat/lng of address check.
check if lat/lng within polygon shape.
if decide though use matching address, here's link postal standard addresses. can use standard normalizing addresses.
http://pe.usps.gov/text/pub28/welcome.htm
andrew team @ opengeocode.org
Comments
Post a Comment