WGS84 geodesic direct and inverse solves.
Angles are degrees and distances are metres at this boundary. The underlying
solver is Karney's WGS84 geodesic implementation from sidereon-core.
Summary
Types
Functions
@spec direct(number(), number(), number(), number()) :: {:ok, direct_result()} | {:error, Sidereon.Geodesic.GeodesicError.t()}
Solve the WGS84 direct geodesic problem.
Inputs are point 1 latitude, longitude, forward azimuth, and geodesic distance. Returns point 2 latitude, longitude, and forward azimuth.
@spec inverse(number(), number(), number(), number()) :: {:ok, inverse_result()} | {:error, Sidereon.Geodesic.GeodesicError.t()}
Solve the WGS84 inverse geodesic problem.
Inputs are point 1 latitude and longitude followed by point 2 latitude and longitude, all in degrees. Returns geodesic distance and forward azimuths.