Skip to main content

Module geospatial

Module geospatial 

Source
Expand description

Geospatial distance functions: Haversine and Vincenty.

This module provides:

  • Haversine: Great-circle distance on a sphere
  • Vincenty: Geodesic distance on an ellipsoid
  • Geospatial: Blanket trait combining Haversine + Vincenty

Traitsยง

Geospatial
Combined trait for all geospatial distance computations.
Haversine
Computes great-circle distances between geographic coordinates on Earth.
Vincenty
Computes Vincenty geodesic distances on the WGS84 ellipsoid.