public class GeoPointRepresents a point on the Earth's surface, in latitude and longitude coordinates.
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 |
doublethe angle between the equatorial plane and a line that passes through the GeoPoint |
longitude |
doubleis 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 |
|