choclo.distance.distance_geodetic

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 boule to obtain the necessary ellipsoid parameters.

Parameters:
longitude_p, latitude_p, height_pfloat

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_qfloat

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_axisfloat

The semimajor (equatorial) axis of the reference ellipsoid in meters.

flatteningfloat

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.

Returns:
distancefloat

Euclidean distance between point \(\mathbf{p}\) and point \(\mathbf{q}\) in meters.