public class GeoPoint extends Object implements IGeoPoint, MathConstants, GeoConstants, Parcelable, Serializable, Cloneable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<GeoPoint> |
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
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
GeoPoint(double aLatitude,
double aLongitude) |
GeoPoint(double aLatitude,
double aLongitude,
double aAltitude) |
GeoPoint(GeoPoint aGeopoint) |
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,
double aBearingInDegrees)
Calculate a point that is the specified distance and bearing away from this point.
|
double |
distanceToAsDouble(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 Parcelable.Creator<GeoPoint> 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 GeoPoint(GeoPoint aGeopoint)
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()
describeContents
in interface Parcelable
public void writeToParcel(Parcel out, int flags)
writeToParcel
in interface Parcelable
public double distanceToAsDouble(IGeoPoint other)
public double bearingTo(IGeoPoint other)
public GeoPoint destinationPoint(double aDistanceInMeters, double aBearingInDegrees)
public String toDoubleString()
public String toInvertedDoubleString()
@Deprecated public int getLatitudeE6()
getLatitudeE6
in interface IGeoPoint
@Deprecated public int getLongitudeE6()
getLongitudeE6
in interface IGeoPoint