Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8757483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:18:45+00:00 2026-06-13T14:18:45+00:00

Is there a service/API that will take a postal/zip code and return the bounding(perimeter)

  • 0

Is there a service/API that will take a postal/zip code and return the bounding(perimeter) coordinates so I can build a Geometry object in a MS SQL database?

By bounding coordinates, I mean I would like to retrieve a list of GPS coordinates that construct a polygon that defines the US zip code.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T14:18:46+00:00Added an answer on June 13, 2026 at 2:18 pm

    An elaboration of my comment, that ZIP codes are not polygons….

    We often think of ZIP codes as areas (polygons) because we say, "Oh, I live in this ZIP code…" which gives the impression of a containing region, and maybe the fact that ZIP stands for "Zone Improvement Plan" helps the false association with polygons.

    In actuality, ZIP codes are lines which represent, in a sense, mail carrier routes. Geometrically, lines do not have area. Just as lines are strings of points along a coordinate plane, ZIP code lines are strings of delivery points in the abstract space of USPS-designated addresses.

    They are not correlated to geographical coordinates. What you will find, though, is that they appear to be geographically oriented because it would be inefficient for carriers to have a route completely irrelevant of distance and location.

    What is this "abstract space of USPS-designated addresses"? That’s how I am describing the large and mysterious database of deliverable locations maintained by the US Postal Service. Addresses are not allotted based on geography, but on the routes that carriers travel which usually relates to streets and travelability.

    Some 5-digit ZIP codes are only a single building, or a complex of buildings, or even a single floor of a building (yes, multiple zip codes can be at a single coordinate because their delivery points are layered vertically). Some of these — among others — are "unique" ZIPs. Companies and universities frequently get their own ZIP codes for marketing or organizational purposes. For instance, the ZIP code "12345" belongs to General Electric up in Schenectady, NY. (Edit: In a previous version of Google Maps, when you follow that link, you’d notice that the placement marker was hovering, because it points to a ZIP code, which is not a coordinate. While most US ZIP codes used to show a region on Google Maps, these types cannot because the USPS does not "own" them, so to speak, and they have no area.)

    Just for fun, let’s try verifying an address in a unique ZIP code. Head over to SmartyStreets and punch in a bogus address in 12345, like:

    Street: 999 Sdf sdf

    ZIP Code: 12345

    When you try to verify that, notice that… it’s VALID! Why? The USPS will deliver a piece to the receptacle for that unique ZIP code, but at that point, it’s up to GE to distribute it. Pretty much anything internal to the ZIP code is irrelevant to the USPS, including the street address (technically "delivery line 1"). Many universities function in a similar manner. Here’s more information regarding that.

    Now, try the same bogus address, but without a ZIP code, and instead do the city/state:

    Street: 999 Sdf sdf

    City: Schenectady

    State: NY

    It doesn’t validate. This is because even though Schenectady contains 12345, where the address is "valid," it geometrically intersects with the "real" ZIP codes for Schenectady.

    Take another instance: military. Certain naval ships have their own ZIP codes. Military addresses are an entirely different class of addresses using the same namespace. Ships move. Geographical coordinates don’t.

    ZIP precision is another fun one. 5-digit ZIP codes are the least "precise" (though the term "specific" might be more meaningful here, since ZIP codes don’t pinpoint anything). 7- and 9-digit ZIP codes are the most specific, often down to block or neighborhood-level in urban areas. But since each ZIP code is a different size, it’s really hard to tell what actual distances you’re talking.

    A 9-digit ZIP code might be portioned to a floor of a building, so there you have overlapping ZIP codes for potentially hundreds of addresses.

    Bottom line: ZIP codes don’t, contrary to popular belief, provide geographical or boundary data. They vary widely and are actually quite un-helpful unless you’re delivering mail or packages… but the USPS’ job was to design efficient carrier routes, not partition the population into coordinate regions so much.

    That’s more the job of the census bureau. They’ve compiled a list of cartographic boundaries since ZIP codes are "convenient" to work with. To do this, they sectioned bunches of addresses into census blocks. Then, they aggregated USPS ZIP code data to find the relation between their census blocks (which has some rough coordinate data) and the ZIP codes. Thus, we have approximations of what it would look like to plot a line as a polygon. (Apparently, they converted a 1D line into a 2D polygon by transforming a 2D polygon based on its contents to fit linear data — for each non-unique, regular ZIP code.)

    From their website (link above):

    A ZIP Code tabulation area (ZCTA) is a statistical geographic entity
    that approximates the delivery area for a U.S. Postal Service
    five-digit or three-digit ZIP Code. ZCTAs are aggregations of census
    blocks that have the same predominant ZIP Code associated with the
    addresses in the U.S. Census Bureau’s Master Address File (MAF).
    Three-digit ZCTA codes are applied to large contiguous areas for which
    the U.S. Census Bureau does not have five-digit ZIP Code information
    in its MAF. ZCTAs do not precisely depict ZIP Code delivery areas, and
    do not include all ZIP Codes used for mail delivery. The U.S. Census
    Bureau has established ZCTAs as a new geographic entity similar to,
    but replacing, data tabulations for ZIP Codes undertaken in
    conjunction with the 1990 and earlier censuses.

    The USCB’s dataset is incomplete, and at times inaccurate. Google still has holes in their data, too (the 12345 is a somewhat good example) — but Google will patch it eventually by going over each address and ZIP code by hand. They do this already, but haven’t made all their map data perfect quite yet. Naturally, access to this data is limited to API terms, and it’s very expensive to raise these.

    Phew. I’m beat. I hope that helps clarify things. Disclaimer: I used to be a developer at SmartyStreets. More information on geocoding with address data.

    Even more information about ZIP codes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a web-service/API that will provide information on who the US State and
I am trying to build a service/API. In my scenario there will be a
Is there any service or api that will allow me to accept credit card
Is there a service or api that allows wikipedia data regarding a string be
I need to create a .Net api that will return JSON that will be
Are there any geo-location api services like hostip.info that working over https Free services
Is there an API to tap to Apple's Bonjour service (I'm planning to share
Is there a way in Android (starting with API 8) to create a service
When invoking a WCF service asynchronous there seems to be two ways it can
I have a service that will run every X minutes. If that job takes

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.