Calculate great-circle distance between two coordinates using the haversine formula.
Remix "Great Circle Distance Advanced" into your own editable copy — tweak it, share it, make it yours.