Index of /~embe8573/distance

[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory   -  
[TXT]README 2020-02-02 22:49 1.1K 
[   ]distance 2020-02-02 22:49 386  
[   ]distance.el 2020-02-02 22:49 1.3K 
[TXT]loc 2020-02-02 22:49 638  

This is a distance-between-cities calculation tool.

The interface is the 'distance' script:

    $ distance 'Easter Island' Santiago
    Easter Island -> Santiago: 3758.04 km

    $ distance Tokyo Paris
    Tokyo -> Paris: 9706.70 km

The 'loc'  script is  what fetches the  locations from
Wikipedia. (Yes: both scripts must be made executable,
and you need internet access.)

The  distance.el is  the Elisp  program that  does the
job: it uses the geometry  Haversine formula to do the
calculation. (So yes, you need  Emacs. By the way, the
word "geometry" sure nailed it this time :)

This method is based on the assumption that Earth is a
sphere, which of course it  is, but not completely so:
of course,  nothing in nature  is perfect in  the math
sense.  Still, the  results  are so  good compared  to
those found in books so  one would think Earth for all
practical purposes is spherical enough!

The files mentioned:

    -rwxr-xr-x 1 user  265 Dec  9 03:39 distance
    -rwxr-xr-x 1 user  250 Dec  9 03:38 loc
    -rw-r--r-- 1 user 1009 Dec  9 03:50 README
    -rw-r--r-- 1 user 1.2K Dec  9 03:46 distance.el