Class GeoPoint (2.0.0)

public class GeoPoint

Represents a point on the Earth's surface, in latitude and longitude coordinates.

Inheritance

java.lang.Object > GeoPoint

Constructors

GeoPoint(double latitude, double longitude)

public GeoPoint(double latitude, double longitude)

Constructs a GeoPoint from a given latitude and longitude.

Parameters
Name Description
latitude double

the angle between the equatorial plane and a line that passes through the GeoPoint

longitude double

is the angle east or west from a reference meridian to another meridian that passes through the GeoPoint

Methods

getLatitude()

public double getLatitude()
Returns
Type Description
double

the angle between the equatorial plan and a line that passes through the GeoPoint

getLongitude()

public double getLongitude()
Returns
Type Description
double

the angle east or west from a reference meridian to another meridian that passes through the GeoPoint

toString()

public String toString()
Returns
Type Description
String
Overrides