ocssw
V2022
|
Go to the source code of this file.
Functions | |
double | vincenty_distance (double lat1, double lon1, double lat2, double lon2) |
Detailed Description
Provides a single function to calculate geographical distances.
The Vincenty algorithm is described at: https://en.wikipedia.org/wiki/Vincenty's_formulae#Inverse_problem
Definition in file vincenty.h.
Function Documentation
◆ vincenty_distance()
double vincenty_distance | ( | double | lat1, |
double | lon1, | ||
double | lat2, | ||
double | lon2 | ||
) |
Calculate geographical distances using Vincenty's algorithm.
- Parameters
-
[in] lat1 Latitude, in degrees, of first point. [in] lon1 Longitude, in degrees, of first point. [in] lat2 Latitude, in degrees, of second point. [in] lon2 Longitude, in degrees, of second point. [out] meters Distance between the two points, in meters.
- Returns
- 0 on success.
Definition at line 47 of file vincenty.c.