none
Finding ZipCodes within the polygon RRS feed

  • Question

  • Hi,

    we are trying to pick all the zipcodes that fall under the drawn polygon, but in case of polygon we can pick only those zipcodes where the polygon vertices are pointed, 

    So kindly let us know the way where in we can pick all the zipcodes that fall under defined polygon

    Thanks in advance

    Friday, April 10, 2015 2:27 PM

Answers

  • There is no easy way to do this. There are a couple approaches you can take.

    The first is to break your polygon up into a grid and reverse geocode a point in each grid cell. This would give you an idea of which zip codes are in the polygon. The accuracy of this would depend on the size of the gird you use. Of course the smaller the grid you use the more accurate it will be, but the more requests/transactions that will be generated.

    Another approach is to take the ZIP Code Tabulation Areas data from the US Census and upload it into SQL and then you can do a straight forward intersection test. This would require some server side code and a database but would be much faster and cheaper than the first approach. http://www.census.gov/geo/maps-data/data/tiger-cart-boundary.html


    http://rbrundritt.wordpress.com

    • Proposed as answer by Ricky_Brundritt Friday, April 10, 2015 5:20 PM
    • Marked as answer by Kiran_Ray Wednesday, April 15, 2015 10:08 AM
    Friday, April 10, 2015 5:20 PM

All replies

  • There is no easy way to do this. There are a couple approaches you can take.

    The first is to break your polygon up into a grid and reverse geocode a point in each grid cell. This would give you an idea of which zip codes are in the polygon. The accuracy of this would depend on the size of the gird you use. Of course the smaller the grid you use the more accurate it will be, but the more requests/transactions that will be generated.

    Another approach is to take the ZIP Code Tabulation Areas data from the US Census and upload it into SQL and then you can do a straight forward intersection test. This would require some server side code and a database but would be much faster and cheaper than the first approach. http://www.census.gov/geo/maps-data/data/tiger-cart-boundary.html


    http://rbrundritt.wordpress.com

    • Proposed as answer by Ricky_Brundritt Friday, April 10, 2015 5:20 PM
    • Marked as answer by Kiran_Ray Wednesday, April 15, 2015 10:08 AM
    Friday, April 10, 2015 5:20 PM
  • Thanks Ricky, your answer was very helpful


    Kirankumar

    Wednesday, April 15, 2015 10:05 AM