krisajenkins/elm-exts/19.2.0

NOTE: this package is not compatible with Elm 0.19.1

Exts.LatLng

Calculations between points on the earth.

{ a | latitude : Float, longitude : Float }
-> { b | latitude : Float, longitude : Float }
-> Float

Calculate the distance in kilometers between two points.

Note that this assumes the earth is spherical, which is not true, but may be true enough for your purposes.

{ a | latitude : Float, longitude : Float }
-> { b | latitude : Float, longitude : Float }
-> Float

Calculate the heading you'd need to travel on to get from point a to point b.