Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 4th, 2007, 07:07 AM
Authorized User
 
Join Date: May 2004
Posts: 73
Thanks: 0
Thanked 1 Time in 1 Post
Default Need a zip code radius finder and calculator.

Hi guys,

I need a zip code radius finder and calculator in my asp.net application where i will provide a zip code, a distance (in miles) and should get a list of zip codes which are the specified miles away from the specified zip code. A site
http://www.zip-codes.com/zip-code-radius-finder.asp provides the similar feature to its general users but i need this thing in the background (in the form of xml, delimited text etc.) so that i will go ahead and show the rental properties in my database matching those zip codes. Is there any site/service available on the net who can provides this service via the background code (preferably free of cost)?


thanks,


baburman

BaburMan
__________________
BaburMan
 
Old December 4th, 2007, 02:16 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

For free, no you are not going to find a service like this I don't think. When I did this in the past I purchased a database of Zip Codes (approx. $200 USD) and then wrote the mathmatic equations to caluclate distance based upon a given zip codes latitude and longitude. (Obviously a Zip Code does not represent a specific physical location like a Stree Address)

Google might help you more.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor :.
Wrox Books 24 x 7
================================================== =========
 
Old December 9th, 2007, 02:40 AM
Authorized User
 
Join Date: May 2004
Posts: 73
Thanks: 0
Thanked 1 Time in 1 Post
Default

Ok for now i managed to get this from http://www.zip-codes.com/zip-code-radius-finder.asp using HttpWebRequest and HttpWebResponse objects and posting a request and parsing the received stream for the zip code. Though it servers the purpose but i still need a reliable solution.



thanks

BaburMan
 
Old December 9th, 2007, 03:05 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Well I guess what is your definition by reliable. For example, the process that I wrote, providing the zip code I live in and the zip code of a neighboring town would return 7 miles, however, Mapquest would return 10.0 miles. Here is the problem: MapQuest calculations work against GeoSpacial data (roads, interstates, etc) my process applied a Great circle theory to an origin latitude and longitude against a destination latitude and longitude resulting in a straight line. Since the shortest distance between 2 points is a straight line my calculations are obviously going to return a shorter distance than that returned from a Mapping service that takes into account all things one might deal with when they travel.

So how reliable do you need this?

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor :.
Wrox Books 24 x 7
================================================== =========
 
Old December 10th, 2007, 10:14 AM
Authorized User
 
Join Date: May 2004
Posts: 73
Thanks: 0
Thanked 1 Time in 1 Post
Default

In fact i do not mean 'reliable' this way. What i think is that if the site that i am getting the info from by parsing its data - changes its rendering html at any time in future so that my parsing logic becomes obsolete. However for a service who is bound to provide such data as a service (like in xml using a backend interface) will never change its provided data format for its clients.



BaburMan





Similar Threads
Thread Thread Starter Forum Replies Last Post
US zip codes - distance calculator itHighway Classic ASP Basics 12 January 19th, 2012 08:45 AM
ZIP with code is broken! CROmagnon BOOK Beginning CSS: Cascading Style Sheets for Web Design, 2nd Ed; ISBN: 978-0-470-09697-0 2 May 23rd, 2008 11:28 AM
Verifying Zip Code Range stevenyoo321 Access VBA 1 February 5th, 2007 08:40 AM
Chapter 5 -- Sample 1: Zip Code Extract mt BOOK: Professional SQL Server 2005 Integration Services ISBN: 0-7645-8435-9 1 February 20th, 2006 04:41 PM
Tips/Tricks - Record Finder Code JeffChr BOOK: Access 2003 VBA Programmer's Reference 2 January 6th, 2005 08:07 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.