public interface PositionResult
| Modifier and Type | Method and Description |
|---|---|
float |
getAccuracy()
Get the estimated horizontal accuracy of this location, radial, in meters
|
android.location.Location |
getAndroidLocation()
A
Location with the original data, if available |
float |
getBearing()
Get the bearing, in degrees
|
int |
getFloor()
Gets the floor (floor index)
|
Point |
getPoint()
Gets the position, as a
Point |
PositionProvider |
getProvider()
Gets the position provider that created this position result
|
boolean |
hasAccuracy()
Checks if horizontal accuracy is available
|
boolean |
hasBearing()
Checks if bearing is available
|
boolean |
hasFloor()
Checks if floor info is available
|
void |
setAccuracy(float accuracy)
Set the estimated horizontal accuracy of this location, radial, in meters
|
void |
setAndroidLocation(android.location.Location location)
Sets the
Location origin of |
void |
setBearing(float bearing)
Set the bearing, in degrees
|
void |
setFloor(int floor)
Sets the floor
|
void |
setProvider(PositionProvider provider) |
boolean hasFloor()
If true, the value returned by getFloor() will be a valid one
int getFloor()
The value returned is only valid if true is returned when calling hasFloor()
void setFloor(int floor)
floor - boolean hasBearing()
float getBearing()
void setBearing(float bearing)
bearing - boolean hasAccuracy()
float getAccuracy()
void setAccuracy(float accuracy)
accuracy - @Nullable PositionProvider getProvider()
void setProvider(@Nullable
PositionProvider provider)
provider - @Nullable android.location.Location getAndroidLocation()
Location with the original data, if availableLocation or nullvoid setAndroidLocation(@Nullable
android.location.Location location)
Location origin oflocation - A Location or null