It looks like those are all point to point distance. Have you found anything that helps to retrieve all zip codes within a radius around a selected zip code?
Main Topics
Browse All TopicsI have found http://www.experts-exchang
The programming language is C# and database used is MySQL. I want to look up all zip codes within a certain radius (generally five miles) of a specific zip code. Samples for distance calculation are plentiful but radius calculation doesn't seem to be so simple. Any help on this is greatly appreciated.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
The only database that I can find for purchase gives 42,000+ zip codes with latitude and longitude. The purchase request for that is being run through my chain of command now. With that info the calculation is left to the user to get the radius / distance. The EE link that I posted gives a calculation for estimating radius but I am trying to get more detail on that. I was hoping that someone here may have some code samples they have used for radius calculation.
I guess so, I have purchased the database that I mentiopned with lat/lon and its initial home is Access. I created a routine using the EE question mentioned in my original post to create the radius search. The formulas below produced the needed results.
Latitude Between 35.634649-(20/60) And 35.634649+(20/60) with 35... corresponding to the selected zip code
Longitude Between -78.012797-((20/60)*Cos(-7
In this case I used 20 miles but that number can be adjusted to show a wider or narrower radius.
Moderator, please refund the points.
strickdd's link on the Java ZIP library already contained your answer it was stored in the function called GetZipRadius()
It is a little cryptic since I don't know postgreSQL but I think the logic is something like this:
1) Get the Lat/Lon for the requested zip code
2) For each zip code in Zips
Find the values where (111.3*lon-CenterLon*Cos(c
(111.3*(lat- CenterLat))^2
< radius^2
I don't know which is correct. Here is a post I found that uses yet another calculation
http://www.meridianworldda
Business Accounts
Answer for Membership
by: strickddPosted on 2009-09-30 at 09:50:48ID: 25460779
These links helped me a LOT when I was doing something similar. The last one is expecially useful with C#.
04/01/how- to-calcula te-the- dis tance-betw een-two-ad dresses-wi th-javascr ipt-and-go ogle- maps- api/
ip-code/
08/11/23/G et-Address -A-to-B- Di stance-usi ng-GoogleM aps-with-C .aspx
http://briancray.com/2009/
http://code.google.com/p/z
http://blog.sb2.fr/post/20