Type in a command, or "ls dictionary" to search all commands for "dictionary", etc.

scale

jscalc Math.acos(Math.sin({idx {explode {tcode ${pt1}},{tcode ${pt2}}} -idx 0})*Math.sin({idx {explode {tcode ${pt1}},{tcode ${pt2}}} -idx 2})+Math.cos({idx {explode {tcode ${pt1}},{tcode ${pt2}}} -idx 0})*Math.cos({idx {explode {tcode ${pt1}},{tcode ${pt2}}} -idx 2})*Math.cos(({idx {explode {tcode ${pt1}},{tcode ${pt2}}} -idx 3})-({idx {explode {tcode ${pt1}},{tcode ${pt2}}} -idx 1})))*{radius -units ${units=mi}}*3.14159/180
NAME

     scale - calculates the distance "as the crow flies" between two 
             places.


SYNOPSIS
     
     scale -pt1 [POINT_1] -pt2 [POINT_2] -units [UNITS]


DESCRIPTION
     
     The scale command uses Tiny Geo-coder to generate the latitude/ 
     longitude coordinates for the specified places or points and the 
     "jscalc" command to return the numeric distance between them
     for the associated units.


EXAMPLES
     
     Example: scale -pt1 New York -pt2 Newark
     Returns: 12.823779445216037 (in miles)

     Example: scale -pt1 New York -pt2 Newark -units km
     Returns: 20.636599859932144


SEE ALSO

     http://tinygeocoder.com/blog/how-to-use/


AUTHOR

     Paul M. Boren
     pmboren AT gmail DOT com
    
106 uses - Created 2010-05-09 06:46:35 - Last used 2013-04-29 17:43:07
Is this command broken? Tell Jon if you know how to fix it.
Do you find this command offensive? Let Jon know.