public class GeoPoint extends Object implements IGeoPoint, MathConstants, GeoConstants, Serializable, Cloneable
Modifier and Type | Field and Description |
---|---|
static <any> |
CREATOR |
(package private) static long |
serialVersionUID |
DEG2RAD, PI, PI_2, PI_4, RAD2DEG
EQUATORCIRCUMFENCE, FEET_PER_METER, METERS_PER_NAUTICAL_MILE, METERS_PER_STATUTE_MILE, RADIUS_EARTH_METERS
Constructor and Description |
---|
GeoPoint(double aLatitude,
double aLongitude) |
GeoPoint(double aLatitude,
double aLongitude,
double aAltitude) |
GeoPoint(int aLatitudeE6,
int aLongitudeE6)
Deprecated.
|
GeoPoint(int aLatitudeE6,
int aLongitudeE6,
int aAltitude)
Deprecated.
|
GeoPoint(Location aLocation) |
Modifier and Type | Method and Description |
---|---|
double |
bearingTo(IGeoPoint other) |
GeoPoint |
clone() |
int |
describeContents() |
GeoPoint |
destinationPoint(double aDistanceInMeters,
float aBearingInDegrees)
Calculate a point that is the specified distance and bearing away from this point.
|
int |
distanceTo(IGeoPoint other) |
boolean |
equals(Object obj) |
static GeoPoint |
fromCenterBetween(GeoPoint geoPointA,
GeoPoint geoPointB) |
static GeoPoint |
fromDoubleString(String s,
char spacer) |
static GeoPoint |
fromIntString(String s) |
static GeoPoint |
fromInvertedDoubleString(String s,
char spacer) |
double |
getAltitude() |
double |
getLatitude() |
int |
getLatitudeE6()
Deprecated.
|
double |
getLongitude() |
int |
getLongitudeE6()
Deprecated.
|
int |
hashCode() |
void |
setAltitude(double aAltitude) |
void |
setCoords(double aLatitude,
double aLongitude) |
void |
setLatitude(double aLatitude) |
void |
setLongitude(double aLongitude) |
String |
toDoubleString() |
String |
toIntString() |
String |
toInvertedDoubleString() |
String |
toString() |
void |
writeToParcel(Parcel out,
int flags) |
static final long serialVersionUID
public static final <any> CREATOR
@Deprecated public GeoPoint(int aLatitudeE6, int aLongitudeE6)
@Deprecated public GeoPoint(int aLatitudeE6, int aLongitudeE6, int aAltitude)
public GeoPoint(double aLatitude, double aLongitude)
public GeoPoint(double aLatitude, double aLongitude, double aAltitude)
public GeoPoint(Location aLocation)
public double getLongitude()
getLongitude
in interface IGeoPoint
public double getLatitude()
getLatitude
in interface IGeoPoint
public double getAltitude()
public void setLatitude(double aLatitude)
public void setLongitude(double aLongitude)
public void setAltitude(double aAltitude)
public void setCoords(double aLatitude, double aLongitude)
public String toIntString()
public int describeContents()
public void writeToParcel(Parcel out, int flags)
public int distanceTo(IGeoPoint other)
public double bearingTo(IGeoPoint other)
public GeoPoint destinationPoint(double aDistanceInMeters, float aBearingInDegrees)
public String toDoubleString()
public String toInvertedDoubleString()
@Deprecated public int getLatitudeE6()
getLatitudeE6
in interface IGeoPoint
@Deprecated public int getLongitudeE6()
getLongitudeE6
in interface IGeoPoint