Location

Location

Represents a location with title, URL, latitude, and longitude.

Constructor

new Location(latitude, longitude)

Description:
  • Creates a new Location instance.
Source:
Parameters:
Name Type Description
latitude number The latitude coordinate of the location.
longitude number The longitude coordinate of the location.

Methods

getLatitude() → {number}

Description:
  • Gets the latitude coordinate of the location.
Source:
Returns:
The latitude coordinate of the location.
Type
number

getLongitude() → {number}

Description:
  • Gets the longitude coordinate of the location.
Source:
Returns:
The longitude coordinate of the location.
Type
number

getTitle() → {string}

Description:
  • Gets the title of the location.
Source:
Returns:
The title of the location.
Type
string

getUrl() → {string}

Description:
  • Gets the URL of the location.
Source:
Returns:
The URL of the location.
Type
string