Package com.navmii.sdk.common
Class MapCoordinates
java.lang.Object
com.navmii.sdk.common.MapCoordinates
- All Implemented Interfaces:
android.os.Parcelable
public final class MapCoordinates
extends java.lang.Object
implements android.os.Parcelable
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<MapCoordinates>
CREATOR
-
Constructor Summary
Constructors Constructor Description MapCoordinates(double latitude, double longitude)
Creates a MapCoordinates with the specified latitude and longitude. -
Method Summary
Modifier and Type Method Description int
describeContents()
boolean
equals(java.lang.Object o)
double
getLatitude()
double
getLongitude()
int
hashCode()
java.lang.String
toString()
void
writeToParcel(android.os.Parcel dest, int flags)
-
Field Details
-
Constructor Details
-
MapCoordinates
public MapCoordinates(double latitude, double longitude)Creates a MapCoordinates with the specified latitude and longitude. The latitude is clamped to the range [-90, 90]. The longitude is normalized to the range [-180, 180).- Parameters:
latitude
- The latitude of the point in degrees.longitude
- The longitude of the point in degrees.
-
-
Method Details
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags)- Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
-
describeContents
public int describeContents()- Specified by:
describeContents
in interfaceandroid.os.Parcelable
-
getLatitude
public double getLatitude()- Returns:
- The latitude in the range [-90, 90].
-
getLongitude
public double getLongitude()- Returns:
- The longitude in the range [-180, 180).
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-