473,800 Members | 2,413 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1547
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******** ******@tk2msftn gp13.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 FindAddressResu lts, FindPlaceResult s 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.publi c.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.c om...
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******** ******@tk2msftn gp13.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.c om...
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
1172
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 below. I have chosen to set the default directory to the location of the zipfile because I usually have an associated configuration inifile alongside. Periodically the topic of program protection crops up. Some zip applications allow password...
4
1358
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 appreciated: SET ROWCOUNT 5 DECLARE @tblTopMarkets TABLE (StateCD CHAR(2), CountyCD CHAR(3)) INSERT INTO @tblTopMarkets select S.StateCD, S.CountyCD
15
7248
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 application (build in Visual Basic) using an ADO/OLE DB Provider on a IBM Client Access ODBC driver. On the Internet I found a whitepaper "SQL messages and codes" provided by IBM which describes a complete list of all SQLSTATEs, SQLCODEs and
6
3707
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
1768
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 extracted files under this dir> The purpose of this script is to retrieve backup files which are individually zipped under a backup directory tree on a backup server.
0
1184
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 know a solution to this? Thanks.
1
3132
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 goes directly to 'city' - someone please tell me what the hell happenned here - g'day - mark void addData() { string zips = ""; string city = ""; ofstream outFile;
0
823
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
7600
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 zipfile import glob r = 1
0
9690
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9551
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10505
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9085
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6811
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5471
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5606
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4149
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2945
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.