Location
Represents a geographic location.
Definition
Package:@progress/kendo-angular-map
Methods
Finds a destination at the given distance and bearing from this location.
The distance to the destination in meters.
bearingnumberThe initial bearing to the destination in decimal degrees.
Returns:The destination at the given distance and bearing.
Calculates the great-circle distance to the given destination in meters.
The destination location.
Returns:number
The distance to the specified location in meters.
Compares this location with another instance.
The location to compare with.
Returns:boolean
true if the location coordinates match; false otherwise.
Creates a Location instance from an [latitude, longitude] array.
The [latitude, longitude] array.
Returns:The Location instance.
Creates a Location instance from an [longitude, latitude] array.
The [longitude, latitude] array.
Returns:The Location instance.
Rounds the location coordinates to the specified number of fractional digits.
Returns the location coordinates as an [lat, lng] array.
[number, number]
An array representation of the location.
Returns the location coordinates formatted as '{lat},{lng}'.
string
A string representation of the location.