Class GPSEvent
- java.lang.Object
-
- com.trx.neon.api.neonConstraint.model.events.GPSEvent
-
- All Implemented Interfaces:
android.os.Parcelable
,INeonEventConstraint
public final class GPSEvent extends java.lang.Object implements android.os.Parcelable, INeonEventConstraint
A GPS Event is emitted when a valid GPS Constraint is received in the NEON Location Service. The SourceType specifies where the constraint came from, the FixQuality specifies the accuracy of the constraint, and the GPSStatus specifies whether this constraint is being applied to improve location
-
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<GPSEvent>
CREATOR
Used for sending data across bindersfloat
ErrorCEP
Error radius in meters CEP50GPSFixQuality
FixQuality
Fix quality of the GPS Constraintdouble
Latitude
WGS-84 Latitudedouble
Longitude
WGS-84 LongitudeGPSSourceType
SourceType
Hardware source of this constraintGPSStatus
Status
Current GPS status in NEON Location Servicelong
StatusFlags
Extra GPS Status Flags to indicate sourcelong
UnixTimeMs
Timestamp of the GPS Constraint in Unix Time Ms
-
Constructor Summary
Constructors Constructor Description GPSEvent(long unixTimeMs, GPSSourceType sourceType, GPSFixQuality fixQuality, double latitude, double longitude, float errorCEP, GPSStatus status, long statusFlags)
Creates a custom constraint
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
describeContents()
void
writeToParcel(android.os.Parcel dest, int flags)
-
-
-
Field Detail
-
UnixTimeMs
public final long UnixTimeMs
Timestamp of the GPS Constraint in Unix Time Ms
-
SourceType
public final GPSSourceType SourceType
Hardware source of this constraint- See Also:
GPSSourceType
-
FixQuality
public final GPSFixQuality FixQuality
Fix quality of the GPS Constraint- See Also:
GPSFixQuality
-
Latitude
public final double Latitude
WGS-84 Latitude
-
Longitude
public final double Longitude
WGS-84 Longitude
-
ErrorCEP
public final float ErrorCEP
Error radius in meters CEP50
-
Status
public final GPSStatus Status
Current GPS status in NEON Location Service- See Also:
GPSStatus
-
StatusFlags
public final long StatusFlags
Extra GPS Status Flags to indicate source
-
CREATOR
public static final android.os.Parcelable.Creator<GPSEvent> CREATOR
Used for sending data across binders
-
-
Constructor Detail
-
GPSEvent
public GPSEvent(long unixTimeMs, GPSSourceType sourceType, GPSFixQuality fixQuality, double latitude, double longitude, float errorCEP, GPSStatus status, long statusFlags)
Creates a custom constraint- Parameters:
unixTimeMs
- Unix time in mssourceType
- Hardware source of this constraintfixQuality
- Fix quality of the GPS Constraintlatitude
- WGS-84 Latitudelongitude
- WGS-84 LongitudeerrorCEP
- Error radius in meters CEP50status
- GPS status for this constraintstatusFlags
- Source information for GPS Status
-
-