public class GeoPoint extends Object implements Serializable, GeoShape, Comparable<GeoPoint>
| Modifier | Constructor and Description |
|---|---|
protected |
GeoPoint() |
|
GeoPoint(double latitude,
double longitude) |
|
GeoPoint(double latitude,
double longitude,
Double altitude) |
|
GeoPoint(double latitude,
double longitude,
Double altitude,
String description) |
|
GeoPoint(double latitude,
double longitude,
String description) |
| Modifier and Type | Method and Description |
|---|---|
static GeoPoint |
calculateCenter(List<GeoPoint> geoPoints) |
int |
compareTo(GeoPoint other) |
static double |
distanceBetween(double latitude1,
double longitude1,
double latitude2,
double longitude2) |
static double |
distanceBetween(GeoPoint geoPoint1,
GeoPoint geoPoint2) |
boolean |
equals(Object obj) |
Double |
getAltitude() |
String |
getDescription() |
double |
getLatitude() |
double |
getLongitude() |
int |
hashCode() |
boolean |
isNorthOf(GeoPoint pt) |
boolean |
isNorthWestOf(GeoPoint pt) |
boolean |
isSouthEastOf(GeoPoint pt) |
boolean |
isSouthOf(GeoPoint pt) |
double |
longitudinalDistanceTo(GeoPoint pt) |
static GeoPoint |
parse(String str) |
String |
toString() |
boolean |
within(GeoShape geoShape) |
protected GeoPoint()
public GeoPoint(double latitude,
double longitude,
Double altitude)
public GeoPoint(double latitude,
double longitude)
public GeoPoint(double latitude,
double longitude,
String description)
public double getLatitude()
public double getLongitude()
public Double getAltitude()
public String getDescription()
public static double distanceBetween(double latitude1,
double longitude1,
double latitude2,
double longitude2)
public int compareTo(GeoPoint other)
compareTo in interface Comparable<GeoPoint>public boolean isSouthEastOf(GeoPoint pt)
public boolean isSouthOf(GeoPoint pt)
public boolean isNorthWestOf(GeoPoint pt)
public double longitudinalDistanceTo(GeoPoint pt)
public boolean isNorthOf(GeoPoint pt)
Copyright © 2014–2017. All rights reserved.