Reference Source
public class | source

LatLng

Extends:

L~L.LatLng → LatLng

Represents a geographical point with a certain latitude and longitude

Example:

var latlng = new KQ.Struct.LatLng(50.5, 30.5);

Constructor Summary

Public Constructor
public

constructor(lat: Number, lng: Number, alt: Number)

Constructor

Method Summary

Public Methods
public

distanceTo(otherLatLng: LatLng): Number

Returns the distance (in meters) to the given LatLng calculated using the Haversine formula

Public Constructors

public constructor(lat: Number, lng: Number, alt: Number) source

Constructor

Params:

NameTypeAttributeDescription
lat Number

latitude

lng Number

longitude

alt Number

altitude

Public Methods

public distanceTo(otherLatLng: LatLng): Number source

Returns the distance (in meters) to the given LatLng calculated using the Haversine formula

Params:

NameTypeAttributeDescription
otherLatLng LatLng

other latlng

Return:

Number