A JavaScript application for calculating distances and directions from one location on the surface of Earth towards another — both the “as the bird flies” direct surface path and the “as the neutrino flies” straight-line path through the Earth.
This is used on the earthdirections.org website; the index.html file corresponds to the earthdirections.org/locate webpage and the locator.js file contains the primary logic for the calculator on that page.