Skip to content

@jdultra/ultra-globe


@jdultra/ultra-globe / GeoUtils / vincentyDistance

Function: vincentyDistance()

vincentyDistance(lon1, lat1, lon2, lat2): number

Defined in: utils/GeoUtils.d.ts:31

Calculates the geodesic distance between two points on the WGS84 ellipsoid using Vincenty's inverse formula.

Parameters

lon1

number

Longitude of the first point in degrees.

lat1

number

Latitude of the first point in degrees.

lon2

number

Longitude of the second point in degrees.

lat2

number

Latitude of the second point in degrees.

Returns

number

  • Distance in kilometers.