-
- All Implemented Interfaces:
-
android.os.Parcelable,java.io.Serializable,java.lang.Cloneable,org.osmdroid.api.IGeoPoint,org.osmdroid.util.constants.GeoConstants,org.osmdroid.views.util.constants.MathConstants
public class GeoPoint implements IGeoPoint, MathConstants, GeoConstants, Parcelable, Serializable, Cloneable
-
-
Field Summary
Fields Modifier and Type Field Description public final static Parcelable.Creator<GeoPoint>CREATOR
-
Constructor Summary
Constructors Constructor Description GeoPoint(int aLatitudeE6, int aLongitudeE6)GeoPoint(int aLatitudeE6, int aLongitudeE6, int aAltitude)GeoPoint(double aLatitude, double aLongitude)GeoPoint(double aLatitude, double aLongitude, double aAltitude)GeoPoint(Location aLocation)GeoPoint(GeoPoint aGeopoint)GeoPoint(IGeoPoint pGeopoint)
-
Method Summary
Modifier and Type Method Description static GeoPointfromDoubleString(String s, char spacer)static GeoPointfromInvertedDoubleString(String s, char spacer)static GeoPointfromIntString(String s)doublegetLongitude()doublegetLatitude()doublegetAltitude()voidsetLatitude(double aLatitude)voidsetLongitude(double aLongitude)voidsetAltitude(double aAltitude)voidsetCoords(double aLatitude, double aLongitude)GeoPointclone()StringtoIntString()StringtoString()booleanequals(Object obj)inthashCode()intdescribeContents()voidwriteToParcel(Parcel out, int flags)doubledistanceToAsDouble(IGeoPoint other)doublebearingTo(IGeoPoint other)GeoPointdestinationPoint(double aDistanceInMeters, double aBearingInDegrees)Calculate a point that is the specified distance and bearing away from this point. static GeoPointfromCenterBetween(GeoPoint geoPointA, GeoPoint geoPointB)StringtoDoubleString()StringtoInvertedDoubleString()intgetLatitudeE6()intgetLongitudeE6()-
-
Constructor Detail
-
GeoPoint
GeoPoint(int aLatitudeE6, int aLongitudeE6)
-
GeoPoint
GeoPoint(int aLatitudeE6, int aLongitudeE6, int aAltitude)
-
GeoPoint
GeoPoint(double aLatitude, double aLongitude)
-
GeoPoint
GeoPoint(double aLatitude, double aLongitude, double aAltitude)
-
GeoPoint
GeoPoint(Location aLocation)
-
GeoPoint
GeoPoint(GeoPoint aGeopoint)
-
GeoPoint
GeoPoint(IGeoPoint pGeopoint)
-
-
Method Detail
-
fromDoubleString
static GeoPoint fromDoubleString(String s, char spacer)
-
fromInvertedDoubleString
static GeoPoint fromInvertedDoubleString(String s, char spacer)
-
fromIntString
@Deprecated() static GeoPoint fromIntString(String s)
-
getLongitude
double getLongitude()
-
getLatitude
double getLatitude()
-
getAltitude
double getAltitude()
-
setLatitude
void setLatitude(double aLatitude)
-
setLongitude
void setLongitude(double aLongitude)
-
setAltitude
void setAltitude(double aAltitude)
-
setCoords
void setCoords(double aLatitude, double aLongitude)
-
toIntString
String toIntString()
-
hashCode
int hashCode()
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel out, int flags)
-
distanceToAsDouble
double distanceToAsDouble(IGeoPoint other)
-
destinationPoint
GeoPoint destinationPoint(double aDistanceInMeters, double aBearingInDegrees)
Calculate a point that is the specified distance and bearing away from this point.
-
fromCenterBetween
static GeoPoint fromCenterBetween(GeoPoint geoPointA, GeoPoint geoPointB)
-
toDoubleString
String toDoubleString()
-
toInvertedDoubleString
String toInvertedDoubleString()
-
getLatitudeE6
@Deprecated() int getLatitudeE6()
-
getLongitudeE6
@Deprecated() int getLongitudeE6()
-
-
-
-