Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: An interesting problem: distance estimating



 On Thu, Jan 03, 2008 at 10:16:09AM -0500, [hidden email] wrote: 
> > [hidden email] 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. 

_______________________________________________ 
Discuss mailing list 
[hidden email] 
http://lists.blu.org/mailman/listinfo/discuss
 


BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org