Coordinates

Coordinates API

Coordinates()

Constructs an instance of Coordinates.

Coordinates(double latitude, double longitude)
Parameters

latitude

Specifies the north-south position of a point on the surface of the Earth, in degrees, ranging from −90° at the south pole to 90° at the north.

longitude

Specifies the east-west position of a point on the surface of the Earth, in degrees, ranging from -180° westward to 180° eastward.

getLatitude()

Returns the latitude in degrees.

double getLatitude()

getLongitude()

Returns the longitude in degrees.

double getLongitude()

Last updated