Location
with LocationManager
@Deprecated
public class SitumLocation
extends 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(Location l)
Deprecated.
Create a new location given other location
|
SitumLocation(java.lang.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.
|
java.lang.String |
toString()
Deprecated.
|
void |
writeExtraData()
Deprecated.
|
@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(java.lang.String provider)
provider
- location providerpublic SitumLocation(Location l)
l
- location to create new locationpublic void writeExtraData()
public void readExtras()
public boolean isValidLocation()
public boolean hasPosition()
public java.lang.String toString()
public boolean isPingLocation()
public static SitumLocation fromLocation(Location location)