473,398 Members | 2,212 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,398 software developers and data experts.

zip code and distances

Hey All,

I need to add a locator service for asp.net where a user would specify a zip code and then the returned list would be displayed in order of closest to furthest. I realize this is a third pary app, but who/what do you recommend??

Thanks!

--
David Lozzi
Web Applications/Network Specialist
Delphi Technology Solutions, Inc.
dlozzi@(remove)delphi-ts.com
Nov 19 '05 #1
6 1653
Third party app? Not necessarily. After all, YOU'RE a third party as well!

What you need is a database of post office locations that includes lat/long
information on each post office. Each Post Office is a zip code. Then you
need a database of whatever you're trying to locate, which also includes
lat/long information about the locations (zip code not necessary). Then you
create a query that uses a bit of trigonometry to get the distance from the
zip code to each of the locations in your locations table, by calculating
the distance between the lat/long of the post office to the lat/longs of
each location. This part can be little tricky, as calculating distances
between lat/longs means calculating distances on the surface of an
ellipsoid, not a sphere, but depending on how accurate you need the results
to be, you can approximate a sphere using the Mean Earth radius.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"David Lozzi" <dlozzi@(remove)delphi-ts.com> wrote in message
news:eO****************@tk2msftngp13.phx.gbl...
Hey All,

I need to add a locator service for asp.net where a user would specify a zip
code and then the returned list would be displayed in order of closest to
furthest. I realize this is a third pary app, but who/what do you
recommend??

Thanks!

--
David Lozzi
Web Applications/Network Specialist
Delphi Technology Solutions, Inc.
dlozzi@(remove)delphi-ts.com

Nov 19 '05 #2
You could probably do it using the MAP Point web service.

Chris.

"David Lozzi" wrote:
Hey All,

I need to add a locator service for asp.net where a user would specify a zip code and then the returned list would be displayed in order of closest to furthest. I realize this is a third pary app, but who/what do you recommend??

Thanks!

--
David Lozzi
Web Applications/Network Specialist
Delphi Technology Solutions, Inc.
dlozzi@(remove)delphi-ts

Nov 19 '05 #3
I just got done implementing locator using zipfind from
http://www.zipfind.net/

It came with sample code and was easy to install and implement. One
drawback is that it is
expensive, like over $1000, but you get licenses for 5 domains with
that, so you can re-use it
if you host multiple domains for different applications.

Also, it has one built-in "easter egg" we found that you will need to
code-around. It will tell you
if a zip code is valid or not, but for some reason it returns 99999 as
being a valid zip code, even
though it is not, and the city/region associated with that zip code in
their database is the name
of the original company that wrote the zip code software. So, in your
form where you check the
zip code that the user entered to see if it is valid, you also need to
check for 99999.

Anyhow, we are really happy with it.
David Lozzi remove wrote:
Hey All,

I need to add a locator service for asp.net where a user would specify a zip code and then the returned list would be displayed in
order of closest to furthest. I realize this is a third pary app, but
who/what do you recommend??
Thanks!

--
David Lozzi
Web Applications/Network Specialist
Delphi Technology Solutions, Inc.
dlozzi@(remove)delphi-ts.com


Nov 19 '05 #4
sean_atlas wrote:
I just got done implementing locator using zipfind from
http://www.zipfind.net/

It came with sample code and was easy to install and implement. One
drawback is that it is
expensive, like over $1000, but you get licenses for 5 domains with
that, so you can re-use it
if you host multiple domains for different applications.

Also, it has one built-in "easter egg" we found that you will need to
code-around. It will tell you
if a zip code is valid or not, but for some reason it returns 99999 as
being a valid zip code, even
though it is not, and the city/region associated with that zip code in
their database is the name
of the original company that wrote the zip code software. So, in your
form where you check the
zip code that the user entered to see if it is valid, you also need to
check for 99999.

Anyhow, we are really happy with it.
David Lozzi remove wrote:
Hey All,

I need to add a locator service for asp.net where a user would


specify a zip code and then the returned list would be displayed in
order of closest to furthest. I realize this is a third pary app, but
who/what do you recommend??
Thanks!

--
David Lozzi
Web Applications/Network Specialist
Delphi Technology Solutions, Inc.
dlozzi@(remove)delphi-ts.com


I have a routine for calculating distance between zip codes and a list
of zip codes with Lat/Lon data ... for free (that is what I paid for it)
interested??

:) L
Nov 19 '05 #5
Hi Lynda,
I am interested in the code if you are willing to share.

Thanks

"Lynda Postal" wrote:
sean_atlas wrote:
I just got done implementing locator using zipfind from
http://www.zipfind.net/

It came with sample code and was easy to install and implement. One
drawback is that it is
expensive, like over $1000, but you get licenses for 5 domains with
that, so you can re-use it
if you host multiple domains for different applications.

Also, it has one built-in "easter egg" we found that you will need to
code-around. It will tell you
if a zip code is valid or not, but for some reason it returns 99999 as
being a valid zip code, even
though it is not, and the city/region associated with that zip code in
their database is the name
of the original company that wrote the zip code software. So, in your
form where you check the
zip code that the user entered to see if it is valid, you also need to
check for 99999.

Anyhow, we are really happy with it.
David Lozzi remove wrote:
Hey All,

I need to add a locator service for asp.net where a user would


specify a zip code and then the returned list would be displayed in
order of closest to furthest. I realize this is a third pary app, but
who/what do you recommend??
Thanks!

--
David Lozzi
Web Applications/Network Specialist
Delphi Technology Solutions, Inc.
dlozzi@(remove)delphi-ts.com


I have a routine for calculating distance between zip codes and a list
of zip codes with Lat/Lon data ... for free (that is what I paid for it)
interested??

:) L

Nov 19 '05 #6
> I have a routine for calculating distance between zip codes and a list
of zip codes with Lat/Lon data ... for free (that is what I paid for it)
interested??

:) L
I'd be interested in it!!

--
Sandy
"Lynda Postal" wrote:
sean_atlas wrote:
I just got done implementing locator using zipfind from
http://www.zipfind.net/

It came with sample code and was easy to install and implement. One
drawback is that it is
expensive, like over $1000, but you get licenses for 5 domains with
that, so you can re-use it
if you host multiple domains for different applications.

Also, it has one built-in "easter egg" we found that you will need to
code-around. It will tell you
if a zip code is valid or not, but for some reason it returns 99999 as
being a valid zip code, even
though it is not, and the city/region associated with that zip code in
their database is the name
of the original company that wrote the zip code software. So, in your
form where you check the
zip code that the user entered to see if it is valid, you also need to
check for 99999.

Anyhow, we are really happy with it.
David Lozzi remove wrote:
Hey All,

I need to add a locator service for asp.net where a user would


specify a zip code and then the returned list would be displayed in
order of closest to furthest. I realize this is a third pary app, but
who/what do you recommend??
Thanks!

--
David Lozzi
Web Applications/Network Specialist
Delphi Technology Solutions, Inc.
dlozzi@(remove)delphi-ts.com


I have a routine for calculating distance between zip codes and a list
of zip codes with Lat/Lon data ... for free (that is what I paid for it)
interested??

:) L

Nov 19 '05 #7

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

Similar topics

7
by: Jayne Wolps | last post by:
Hello I wonder if anyone can help. I would like to know how certain sites: http://aboutbritain.com/ArundelCastle.htm, and http://travel.knowhere.co.uk/place/+bristol-0/ manage to put approx...
2
by: Tim Marshall | last post by:
There must be some way that tabs are set in module windows. A lot of the code I've used from the Access Web and other sites have indents that I can't possibly imitate. Is there a way to do...
1
by: Hul Tytus | last post by:
comp.lang.c converting a point known by 4 distances to xyz coordinates? Amongst all the librarys on the internet there is certainly source for a routine that converts a point known by 4...
65
by: Skybuck Flying | last post by:
Hi, I needed a method to determine if a point was on a line segment in 2D. So I googled for some help and so far I have evaluated two methods. The first method was only a formula, the second...
29
by: John Rivers | last post by:
Hello, What good reason there is for not allowing methods in ASPX pages I can't imagine, but here is how to get around that limitation: (START) <body MS_POSITIONING="FlowLayout"> <form...
8
by: Scott Emick | last post by:
I am using the following to compute distances between two lat/long coordinates for a store locator - (VB .NET 2003) it seems to take a long time to iterate through like 100-150 locations -...
13
by: racygirl | last post by:
Hi all, I was just wondering, is it possible to write a solution to the following problem with the following criteria: 1. it must be as efficient as possible at run-time 2. be in O(1) 3. and...
0
by: tienlx | last post by:
Hi, I've a report (ReportAppointment.rdlc) in ASP.NET When viewing reports, the vertical distance between the two group are too big. I've tried to reduce the vertical distances but i can't. Demo:...
3
by: Paul Aspinall | last post by:
Hi Can anyone recommend a suitable way of calculating distances between UK post codes?? Many websites do this, and I'm wondering if there is some standard code, and where the reference DB comes...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.