choclo.distance.distance_geodetic#
- choclo.distance.distance_geodetic(longitude_p, latitude_p, height_p, longitude_q, latitude_q, height_q, semimajor_axis, flattening)[source]#
Euclidean distance between two points in geodetic coordinates.
Computes the Euclidean distance between two points given in geodetic coordinates using the closed-form formula given by [Vajda2004].
Important
All angles must be in degrees and heights in meters.
Hint
Use
bouleto obtain the necessary ellipsoid parameters.- Parameters:
- longitude_p, latitude_p, height_p
float Longitude, geodetic latitude, and height above the ellipsoid coordinates of point \(\mathbf{p}\). Longitude and latitude must be in degrees, height should be in meters.
- longitude_q, latitude_q, height_q
float Longitude, geodetic latitude, and height above the ellipsoid coordinates of point \(\mathbf{q}\). Longitude and latitude must be in degrees, height should be in meters.
- semimajor_axis
float The semimajor (equatorial) axis of the reference ellipsoid in meters.
- flattening
float The flattening of the ellipsoid \(f = (a - b)/a\), in which \(a\) is the semimajor axis and \(b\) is the semiminor axis of the ellipsoid.
- longitude_p, latitude_p, height_p
- Returns:
- distance
float Euclidean distance between point \(\mathbf{p}\) and point \(\mathbf{q}\) in meters.
- distance