Constructor

GeoPoint

new GeoPoint(latitude, longitude)

Creates a GeoPoint.

Parameter

latitude

number

The latitude as a number between -90 and 90.

longitude

number

The longitude as a number between -180 and 180.

Properties

latitude

read-only

number

The latitude as a number between -90 and 90.

longitude

read-only

number

The longitude as a number between -180 and 180.

Methods

isEqual

isEqual(other) returns boolean

Returns true if this GeoPoint is equal to the provided value.

Parameter

other

any type

The value to compare against.

Returns

boolean 

true if this GeoPoint is equal to the provided value.

toString

toString() returns string

Returns a string representation for this GeoPoint.

Returns

string 

The string representation.