I have a database of US based street addresses for which a client of mine offers their services. I am working on a form that would allow a customer to enter in their zip code or address to see if there is service in their area.
Is there a component or an algorithm “out there” somewhere that I can use as a template?
I have played with GIS and the tiger zips in a previous geolocation project but am not sure this is the best way to go.
Here is one crude approach:
territory needs to be geographically
referenced as areal units or
polygons on a map.
coordinates of the zip-code polygons
(you can parse the shapefile).
polygons that overlap the chosen zip-code polygon
by performing an overlapping polygon
test. You can use the python
shapely library.
Of course, you can speed things up by some how adding information on the centroid proximity structure or contiguity structure of the polygons so there was less looping needed.
good luck