LatLongPosition

constructor(lat: Double, lon: Double)

Builds a new position using the default distance formula.

Parameters

lat

latitude

lon

longitude


constructor(lat: Double, lon: Double, distanceFormula: LatLongPosition.DistanceFormula)

Builds a new position using the given distance formula.

Parameters

lat

latitude

lon

longitude

distanceFormula

the formula to use to compute distances


constructor(lat: Double, lon: Double, distanceFormula: Int)

Builds a new position using the distance formula with the given index.

Parameters

lat

latitude

lon

longitude

distanceFormula

the index of the formula to use to compute distances


constructor(lat: Number, lon: Number)

Builds a new position from the given numbers, using the default distance formula.

Parameters

lat

latitude

lon

longitude