Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACCURACY
The accuracy of the location data, in meters.
|
static java.lang.String |
BEARING
The bearing of the location data.
|
static java.lang.String |
LAT_LON
The coordinates of the location.
|
static java.lang.String |
LEVEL_BUILDING
Building level.
|
static java.lang.String |
LEVEL_CITY
City level.
|
static java.lang.String |
LEVEL_COUNTRY
Country level.
|
static java.lang.String |
LEVEL_EXACT
Exact level.
|
static java.lang.String |
LEVEL_NEIGHBORHOOD
Neighborhood level.
|
static java.lang.String |
PROVIDER
The provider of the location data, e.g., "gps" or "network".
|
static java.lang.String |
SPEED
The speed at the location, in meters/second.
|
static java.lang.String |
TIMESTAMP
The timestamp of the location.
|
EOS, TIME_CREATED
Modifier and Type | Method and Description |
---|---|
static PStreamProvider |
asCurrent(java.lang.String level)
Provide an PStream of a Geolocation item, as the current location.
|
static PStreamProvider |
asLastKnown(java.lang.String level)
Provide an PStream of a Geolocation item, as the last known location.
|
static PStreamProvider |
asUpdates(long interval,
java.lang.String level)
Provide a live stream of Geolocation as the location updates.
|
containsField, equals, excludeFields, getAsBoolean, getAsDouble, getAsFloat, getAsInteger, getAsLong, getAsString, getValueByField, includeFields, isEndOfStream, setFieldValue, toDebugString, toJson, toMap, toString
@PSItemField(type=java.lang.Long.class) public static final java.lang.String TIMESTAMP
@PSItemField(type=LatLon.class) public static final java.lang.String LAT_LON
@PSItemField(type=java.lang.Float.class) public static final java.lang.String SPEED
@PSItemField(type=java.lang.String.class) public static final java.lang.String PROVIDER
@PSItemField(type=java.lang.Float.class) public static final java.lang.String ACCURACY
@PSItemField(type=java.lang.Float.class) public static final java.lang.String BEARING
public static final java.lang.String LEVEL_COUNTRY
public static final java.lang.String LEVEL_CITY
public static final java.lang.String LEVEL_NEIGHBORHOOD
public static final java.lang.String LEVEL_BUILDING
public static final java.lang.String LEVEL_EXACT
public static PStreamProvider asUpdates(long interval, java.lang.String level)
interval
- The interval between each two location updates.level
- The location granularity level, could be
`Geolocation.LEVEL_COUNTRY`, `Geolocation.LEVEL_CITY`, `Geolocation.LEVEL_NEIGHBORHOOD`,
`Geolocation.LEVEL_BUILDING`, or `Geolocation.LEVEL_EXACT`.public static PStreamProvider asLastKnown(java.lang.String level)
level
- The location granularity level, could be
`Geolocation.LEVEL_COUNTRY`, `Geolocation.LEVEL_CITY`, `Geolocation.LEVEL_NEIGHBORHOOD`,
`Geolocation.LEVEL_BUILDING`, or `Geolocation.LEVEL_EXACT`.public static PStreamProvider asCurrent(java.lang.String level)
level
- The location granularity level, could be
`Geolocation.LEVEL_COUNTRY`, `Geolocation.LEVEL_CITY`,
`Geolocation.LEVEL_NEIGHBORHOOD`, `Geolocation.LEVEL_BUILDING`,
or `Geolocation.LEVEL_EXACT`.