Skip to main content

Module geo

Module geo 

Source
Expand description

Geographic math — distances, bearings, destinations on the sphere.

Structs§

LonLat
A geographic coordinate.

Constants§

EARTH_R
Mean Earth radius in meters.

Functions§

bearing
Initial bearing from a to b in degrees clockwise from north.
destination
Destination point from a, travelling dist_m meters on bearing_deg.
haversine
Great-circle distance in meters (haversine).
polyline_length
Total length of a polyline in meters.