New to Kendo UI for AngularStart a free 30-day trial

Represents a geographic location.

Definition

Package:@progress/kendo-angular-map

Methods

Creates a new instance with the same coordinates.

Returns:

Location

The new Location instance.

Finds a destination at the given distance and bearing from this location.

Parameters:distancenumber

The distance to the destination in meters.

bearingnumber

The initial bearing to the destination in decimal degrees.

Returns:

Location

The destination at the given distance and bearing.

Calculates the great-circle distance to the given destination in meters.

Parameters:destinationLocation

The destination location.

Returns:

number

The distance to the specified location in meters.

Compares this location with another instance.

Parameters:locationLocation

The location to compare with.

Returns:

boolean

true if the location coordinates match; false otherwise.

Creates a Location instance from an [latitude, longitude] array.

Parameters:latlngnumber[] | [number, number]

The [latitude, longitude] array.

Returns:

Location

The Location instance.

Creates a Location instance from an [longitude, latitude] array.

Parameters:lnglatnumber[] | [number, number]

The [longitude, latitude] array.

Returns:

Location

The Location instance.

Rounds the location coordinates to the specified number of fractional digits.

Parameters:digitsnumber

Number of fractional digits.

Returns:

Location

The current Location instance.

Returns the location coordinates as an [lat, lng] array.

Returns:

[number, number]

An array representation of the location.

Returns the location coordinates formatted as '{lat},{lng}'.

Returns:

string

A string representation of the location.

Wraps the latitude and longitude to fit into the [0, 90] and [0, 180] range.

Returns:

Location

The current Location instance.

Properties

lat

number

The location latitude in decimal degrees.

lng

number

The location longitude in decimal degrees.