Menu

API: ZIP Codes

Looking for specific topics?

 

 

Try sorting by categories

Or, view our archive

ZIP Codes are by far the most common way for developers to enable local search. Web site visitors don’t relate to ZIP Codes the same way as Neighborhoods because they are not socially relevant, but they have the advantage of covering all geographic areas and are easy to link to data that contains address fields.

So, what is the easiest way to enable search and filtering by ZIP Code on your web site?
The Maponics API.

Once registered, you’ll be issued a key that you pass along with data requests from your site to our API server. You can pass one or more parameters to the API server and use a variety of public methods depending on the use case. Here are a few common methods:

Method

Description

getGeoNameByCoord
This request requires you to submit a latitude and longitude coordinate pair. The API will spatially determine the object that those coordinates are within, and then return the name of that object.

getGeoAttByCoord
This request requires you to submit a latitude and longitude coordinate pair. The API will spatially determine the object that those coordinates are within, and then return the desired list of attributes for that object.

getGeoNameByRadius
This request requires you to submit a latitude and longitude coordinate pair, field list, and a radius in miles. The API will spatially determine the number of objects that are wholly or partially within that radius and return a list of names for those objects.

getGeoPolyByCoord
This request requires you to submit a latitude and longitude coordinate pair. The API will spatially determine the object that those coordinates are within, and return the geometry for that object.

Using the methods above, developers can return 5 digit ZIP Codes, 3 digit ZIP Codes, ZIP Code centroids, postal town name and more.

Contact us to sign up for a free API trial.

Other posts in this series:

Maponics Spatial API
API: Global Neighborhood Boundaries
API: School Attendance Zones