Landmark.Measurement (landmark v0.2.0)

Summary

Functions

Takes two Geo.Points and finds the geographic bearing between them, i.e. the angle measured in degrees from the north line (0 degrees)

Computes the centroid as the mean of all vertices within the object.

Calculates the distance between two coordinates. Uses the Haversine formula to account for global curvature.

Functions

bearing(point1, point2)

Takes two Geo.Points and finds the geographic bearing between them, i.e. the angle measured in degrees from the north line (0 degrees)

centroid(object)

Computes the centroid as the mean of all vertices within the object.

distance(from, to, unit \\ :kilometers)

Calculates the distance between two coordinates. Uses the Haversine formula to account for global curvature.

Default unit is kilometers.