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
NameDescription
latitudedouble

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

longitudedouble

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

Methods

getLatitude()

public double getLatitude()
Returns
TypeDescription
double

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

getLongitude()

public double getLongitude()
Returns
TypeDescription
double

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

toString()

public String toString()
Returns
TypeDescription
String
Overrides