radius search

Tech-Archive recommends: Fix windows errors by optimizing your registry



I know all about it, including where to get the tables, etc.
Contact through here or the contact form on my site:
http://repairdot.com



Peter Duniho wrote:

Re: A Radius Search?
13-Jun-09

On Fri, 12 Jun 2009 20:26:01 -0700, jp2msft
<jp2msft@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:


It is trivial in the sense that the math is simple. In fact, for your
purposes it's unlikely you need a very accurate great circle calculation.
Even one that assumes the Earth is a perfect sphere is probably good
enough, in spite of the large error that can be present with that approach.

The hard part is your database, which will need to include lat/lon
information for all possible zip codes, as well as for all "available
locations". You may be able to obtain a computer-readable database for
the zip code information from the United States Post Office (assuming
you're looking for US zip codes, of course...most countries use a term
other than "zip code", thus my assumption you're talking about US zip
codes). You could subscribe to/license a map database that includes
support for translating addresses to lat/lon, but assuming you know in
advance the specific "available locations", you may find it more
cost-effective to just make your own database with the lat/lon
precalculated.

I don't know the licensing terms, but it's possible you could use the
Google Maps Javascript API to do the initial lat/lon calculations, to be
stored in your database. Google Maps can convert any US zip code or
address to a specific lat/lon for you. Of course, the specifics of that
are off-topic here. You'll need to research that on your own somewhere
else.

Likewise the great circle calculation. But, I know for a fact that
there's a lot of examples available online for that. Just Google it. :)

Pete

EggHeadCafe - Software Developer Portal of Choice
Asynchronous WebRequest: The Basics
http://www.eggheadcafe.com/tutorials/aspnet/ca3b349e-60bb-4b6c-bddf-86b16f9a00dd/asynchronous-webrequest.aspx
.



Relevant Pages

  • Re: A Radius Search?
    ... for your purposes it's unlikely you need a very accurate great circle calculation. ... You may be able to obtain a computer-readable database for the zip code information from the United States Post Office. ... You could subscribe to/license a map database that includes support for translating addresses to lat/lon, but assuming you know in advance the specific "available locations", you may find it more cost-effective to just make your own database with the lat/lon precalculated. ... I don't know the licensing terms, but it's possible you could use the Google Maps Javascript API to do the initial lat/lon calculations, to be stored in your database. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: How to Validate Address?
    ... Any checks have the risk of rejecting correct data. ... Zip codes might be ... zipcode database should reflect the new codes. ... street, and google maps quickly showed me the woods nearby, where no ...
    (alt.html)
  • Re: How to Validate Address?
    ... Zip codes might be ... zipcode database should reflect the new codes. ... find it (will contain string "No match found" inside) I will alert the ... street, and google maps quickly showed me the woods nearby, where no ...
    (alt.html)
  • Re: Only displaying the form window
    ... This database has a startup ... I was puting the codes ... > startup form and just use the main switchboard, ... I don't have Access 2003 installed, but if its version of the Northwind ...
    (microsoft.public.access.forms)
  • Re: Geolocations
    ... As for how precise the coordinates are, that depends on how digits you use and how precise you can get with the technology you are using (e.g. a map or GPS). ... I've certainly spent a lot of time scouring old maps and driving/walking about an area in the hope of finding some location connected with family history. ... My only problem is a place entry in my database is used for lots of people and lots of events. ... Certainly it is not feasible to record lat/lon values for every event in the database but that does not mean you should not for those you can. ...
    (soc.genealogy.computing)