Location
with LocationManager
@Deprecated public class SitumLocation extends android.location.Location
Modifier and Type | Field and Description |
---|---|
int |
hasorientation
Deprecated.
Has orientation has 2 types of values.
|
int |
level
Deprecated.
Level id associated where the position is located.
|
long |
ping
Deprecated.
not longer supported // TODO: 25/01/17 alternativa?
|
float |
radius
Deprecated.
Area of confidence in meters
|
ServerBase.ServerDescriptor |
serverType
Deprecated.
debug field no longer supported. The value is always
ServerBase.ServerDescriptor#SITUM |
int |
validTransition
Deprecated.
Valid transition has 3 types of values.
|
float |
x
Deprecated.
X position in meters from the bottom left of the building image,
use the method
SitumBuilding.toEarthCoordinates(double, double)
to obtain a longitude value in earth coordinates |
float |
y
Deprecated.
Y position in meters from the bottom left of the building image,
use the method
SitumBuilding.toEarthCoordinates(double, double)
to obtain a latitude value in earth coordinates |
float |
yaw
Deprecated.
Orientation in degrees
|
float |
yawchange
Deprecated.
Not used
|
Constructor and Description |
---|
SitumLocation(android.location.Location l)
Deprecated.
Create a new location given other location
|
SitumLocation(SitumLocation location)
Deprecated.
Create a new location given other location
|
SitumLocation(String provider)
Deprecated.
Create a new location with the given provider
|
Modifier and Type | Method and Description |
---|---|
static SitumLocation |
fromLocation(Location location)
Deprecated.
|
boolean |
hasPosition()
Deprecated.
|
boolean |
isPingLocation()
Deprecated.
|
boolean |
isValidLocation()
Deprecated.
|
void |
readExtras()
Deprecated.
|
String |
toString()
Deprecated.
|
void |
writeExtraData()
Deprecated.
|
bearingTo, convert, convert, describeContents, distanceBetween, distanceTo, dump, getAccuracy, getAltitude, getBearing, getElapsedRealtimeNanos, getExtras, getLatitude, getLongitude, getProvider, getSpeed, getTime, hasAccuracy, hasAltitude, hasBearing, hasSpeed, isFromMockProvider, removeAccuracy, removeAltitude, removeBearing, removeSpeed, reset, set, setAccuracy, setAltitude, setBearing, setElapsedRealtimeNanos, setExtras, setLatitude, setLongitude, setProvider, setSpeed, setTime, writeToParcel
@Deprecated public long ping
public float x
SitumBuilding.toEarthCoordinates(double, double)
to obtain a longitude value in earth coordinatespublic float y
SitumBuilding.toEarthCoordinates(double, double)
to obtain a latitude value in earth coordinatespublic float yaw
public int level
SitumLevel.getLevelId()
public int validTransition
public float radius
public int hasorientation
@Deprecated public float yawchange
@Deprecated public ServerBase.ServerDescriptor serverType
ServerBase.ServerDescriptor#SITUM
public SitumLocation(String provider)
provider
- location providerpublic SitumLocation(android.location.Location l)
l
- location to create new locationpublic SitumLocation(SitumLocation location)
location
- location to create new locationpublic void writeExtraData()
public void readExtras()
public boolean isValidLocation()
public boolean hasPosition()
public String toString()
toString
in class android.location.Location
public boolean isPingLocation()
public static SitumLocation fromLocation(Location location)