public class Location extends Object implements FloorResource, android.os.Parcelable
isIndoor() and isOutdoor().
A valid indoor location has floorIdentifier and cartesianCoordinate.| Modifier and Type | Class and Description |
|---|---|
static class |
Location.Builder |
static interface |
Location.Quality |
| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<Location> |
CREATOR |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
boolean |
equals(Object o) |
float |
getAccuracy()
Return the accuracy radius (in meters)
|
Angle |
getBearing()
Return the bearing (in degrees) with respect to the Earth North.
|
String |
getBuildingIdentifier()
Only used in indoor.
|
Angle |
getCartesianBearing()
Only used in indoor.
|
CartesianCoordinate |
getCartesianCoordinate()
Only used in indoor.
|
Coordinate |
getCoordinate() |
String |
getFloorIdentifier()
Only used in indoor.
|
Point |
getPosition() |
String |
getProvider() |
int |
getQuality()
Only used in indoor.
|
long |
getTime()
Return the timestamp of the location.
|
boolean |
hasBearing() |
boolean |
hasCartesianBearing() |
int |
hashCode() |
boolean |
isIndoor() |
boolean |
isOutdoor() |
String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<Location> CREATOR
public Point getPosition()
public boolean isIndoor()
public boolean isOutdoor()
public Coordinate getCoordinate()
public CartesianCoordinate getCartesianCoordinate()
public String getBuildingIdentifier()
getBuildingIdentifier in interface BuildingResourcepublic String getFloorIdentifier()
getFloorIdentifier in interface FloorResourcepublic int getQuality()
Location.Quality.public long getTime()
public float getAccuracy()
public boolean hasCartesianBearing()
public Angle getCartesianBearing()
hasCartesianBearing() is false
it will return a default Anglepublic boolean hasBearing()
public Angle getBearing()
hasBearing() is false
it will return a default Anglepublic String getProvider()
public int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelable