[GIS] Zipcode to Polygon/Boundary

google mapsgoogle-maps-apipolygonpolygon-creationzip-codes

Is there any API out there which can give me Polygon value for a zipcode? I really thought that it would be fairly easy for me given the number of Maps APIs out there. Either Google Maps API or something else would be able to give me that data. But a plain Google search was not able to come back with any results which were satisfying.

The I realized that the Zipcodes can not be "strictly" defined as polygons. They belong to another type of geometrical element called "Boundaries".

All I want it a container inside a container inside a container

However, the smallest molecule in the equation would be a zipcode. The other containers can be Polygons OR Boundaries. I am not sure if that would make a HUGE difference. However, what I want essentially is a Geometrical representation of a zipcode boundary so that my SQL Server Db can understand it and I can query it from there

Any good suggestions on how can I enter a Zipcode and get a respective Polygon/boundary value for it?

Best Answer

**Disclaimer I work here*

Very simple solution to this. sign up here: boundaries-io.com

then in your code: .../rest/v1/public/boundary?zipcode=20037,20002

The results are GeoJson to easily integrate that takes GeoJson like Google Map... used GeoJSONLint to cut and paste my GeoJson Results from the API call above to display the below image...Hope this helps!

Zip Code(s) to Polygons Example GeoJSON Screenshot Using Boundaries-io.com's API.