473,320 Members | 2,112 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

finding zips around a certin zip code

I need to be able to enter a zip code and say show me all the zip codes or
towns within X number of miles from that entered one... does anyone know of
a soultion or product that can do this? (can even be $ for the product, a
free example on how to do it would be nice through to learn from) thanks!
Nov 21 '05 #1
6 1528
Interesting question. I suppose the first thing you'd have to learn is
exactly how zipcodes work. There's a good explanation at
http://www.zip-codes.com/zip_codes_history.asp. Afterwards, I'd suggest
compiling some kind of zipcode listing dictionary or database (so you
wouldn't be "making up" non-existant zipcodes) and then run searches through
the dictionary based upon the rules of how zip codes work.

-Jason

"Brian Henry" <no****@nospam.com> wrote in message
news:uX**************@tk2msftngp13.phx.gbl...
I need to be able to enter a zip code and say show me all the zip codes or
towns within X number of miles from that entered one... does anyone know of
a soultion or product that can do this? (can even be $ for the product, a
free example on how to do it would be nice through to learn from) thanks!

Nov 21 '05 #2
Hi,

Actually, if you install Microsoft MapPoint, you probably could use its API
for this purpose. It has a FindAddressResults, FindPlaceResults and
FindResults objects that have a methods that you can call to locate a ZIP
code (ostensibly to view that area on a map -- however, it is not necessary
to actually display the map to use the API). Then, there are other methods
that can be called (FindPlace, etc.) This certainly can be used to create a
list of all ZIPs within a certain distance of the starting ZIP. I suspect
that it could be used to find City names, too.

I haven't done what you ask. However, there is a good starting point. Go
to www.mp2mag.com and look around (also the microsoft.public.mappoint
newsgroup may be able to help).

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 4th
Edition ISBN 1-890422-28-2 (391 pages) published July 2004. See
www.mabry.com/vbpgser4 to order.
Nov 21 '05 #3
On Mon, 16 May 2005 15:21:24 -0400, "Brian Henry" <no****@nospam.com>
wrote:
I need to be able to enter a zip code and say show me all the zip codes or
towns within X number of miles from that entered one... does anyone know of
a soultion or product that can do this? (can even be $ for the product, a
free example on how to do it would be nice through to learn from) thanks!

USPS used to offer a database solution, then they moved it to a web
service. The way to do it is based off of Lat/Long math. There's a
ton of comercial products, but the one from USPS will also return
Zip+4. It's pretty kewl if you ask me and worth it if you need that
level of functionality.

Tibby
Nov 21 '05 #4
we already have a zip code database of existing zips in our database server
with town and stuff... we jsut need a product or service to find near
ones... do you have any names? and where is the USPS web service at? thanks
"Tibby" <ti*************@hotmail.com> wrote in message
news:e6********************************@4ax.com...
On Mon, 16 May 2005 15:21:24 -0400, "Brian Henry" <no****@nospam.com>
wrote:
I need to be able to enter a zip code and say show me all the zip codes or
towns within X number of miles from that entered one... does anyone know
of
a soultion or product that can do this? (can even be $ for the product, a
free example on how to do it would be nice through to learn from) thanks!

USPS used to offer a database solution, then they moved it to a web
service. The way to do it is based off of Lat/Long math. There's a
ton of comercial products, but the one from USPS will also return
Zip+4. It's pretty kewl if you ask me and worth it if you need that
level of functionality.

Tibby

Nov 21 '05 #5

"Brian Henry" <no****@nospam.com> wrote in message
news:uX**************@tk2msftngp13.phx.gbl...
I need to be able to enter a zip code and say show me all the zip codes or
towns within X number of miles from that entered one... does anyone know of a soultion or product that can do this? (can even be $ for the product, a
free example on how to do it would be nice through to learn from) thanks!


Brian,

Can you give me an idea of what you have already?
Do you already have ZIP code and town info? If so, what format?
Points, polygons, etc.? GDT / TeleAtlas, Navteq, Tiger, etc.?
When you say towns, do you mean strictly incorporated areas or MCD/CCD?
If those acronyms and such don't ring a bell, then describe precisely what
you have and what you need.

I ask, because I specialize in stuff like this and have a rather large
framework for dealing with such things.
But there are proly a dozen different results you could be looking for.
Radius from a point, buffer around polygon, etc.
Plus, ZIP code areas can be quite complex things and vary by region around
the USA. They can also be quite different if you are talking about regions
outside the USA.

Gerald
Nov 21 '05 #6
Brian Henry wrote:
we already have a zip code database of existing zips in our database
server with town and stuff... we jsut need a product or service to
find near ones... do you have any names? and where is the USPS web
service at? thanks
"Tibby" <ti*************@hotmail.com> wrote in message
news:e6********************************@4ax.com...
On Mon, 16 May 2005 15:21:24 -0400, "Brian Henry"
<no****@nospam.com> wrote:
I need to be able to enter a zip code and say show me all the zip
codes or towns within X number of miles from that entered one...
does anyone know of
a soultion or product that can do this? (can even be $ for the
product, a free example on how to do it would be nice through to
learn from) thanks!

USPS used to offer a database solution, then they moved it to a web
service. The way to do it is based off of Lat/Long math. There's a
ton of comercial products, but the one from USPS will also return
Zip+4. It's pretty kewl if you ask me and worth it if you need that
level of functionality.

Tibby


usps.gov (United States Postal Service)
Nov 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Colin Brown | last post by:
As I am getting a larger collection of python program packages the idea of saving them as zips is becoming increasingly attractive. The latest idea is to launch them from a generic wrapper listed...
4
by: JJA | last post by:
I need to show data for the top 3 zipcodes for EACH of the top 5 counties. I feel totally blocked on how to make this work properly. Here is my code - anything you can suggest will be greatly...
15
by: Twan Kennis | last post by:
Hi, I have a DB2 database on the IBM iSeries platform, on which I created several Stored Procedures with the SQLCODE as a return-parameter. These Stored Procedures are called from a Windows...
6
by: SSG | last post by:
Hai All! I need the optimized code for finding the string length. i dont want to use strlen function......... can anyone know reply........ By S.S.G
1
by: Hari Sekhon | last post by:
Hi, I've written a script to run on windows to extract all zips under a given directory path to another directory path as such: python extractzips.py <fetch all zips under this dir> <put all...
0
by: gardnern | last post by:
I can get PHP to open zip files no problem, however the zips I need to open are password protected. Id like to refrain from calling system commands (system(); or exec(); or passthrough();). Anyone...
1
by: m3zmeriz3d | last post by:
i typed a function to enter data into a file to be recalled later, now i have done something here and as soon as this function begins it skips the first 'zips' getline and makes it a blank space and...
0
by: kinnu | last post by:
Hi, Please help me in source code to download which zips and extracts the files from/to the destination...
4
by: Bouzy | last post by:
I am attempting to write a script to zip all directories in current directory into zip files. e.g. . Currently I have this... #!/usr/bin/python # Filename: backup_zip.py import os import...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.