An interesting problem: distance estimating
Dan Ritter
dsr at tao.merseine.nu
Thu Jan 3 10:55:49 EST 2008
On Thu, Jan 03, 2008 at 10:16:09AM -0500, markw at mohawksoft.com wrote:
> > markw at mohawksoft.com wrote:
> >> I've been thinking about an issue:
> >> So, what do you think would be a practical algorithm for estimating
> >> distance?
> >
> > Use google maps' web services api ;-)
>
> That would be "easier" in a sense, but not the best solution for a high
> volume web site.
So adjust to suit your intuition:
- for x > 250 miles, return x
- for 100 < x < 250 miles, return 1.05 * x
- for 10 < x < 100 miles, return 1.1 * x
- for x < 10 miles, return 1.3 * x
-dsr-
--
This message has been scanned for viruses and
subversive content by DHS, and is
believed to be traitorous Commie propaganda.
--
Every time you give up a right, the terrorists win.
Tyranny is something that creeps up on you.
http://tao.merseine.nu:81/~dsr/eula.html is hereby incorporated by reference.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the Discuss
mailing list