Class 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
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface android.os.Parcelable

        android.os.Parcelable.ClassLoaderCreator<T extends java.lang.Object>, android.os.Parcelable.Creator<T extends java.lang.Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static android.os.Parcelable.Creator<GPSEvent> CREATOR
      Used for sending data across binders
      float ErrorCEP
      Error radius in meters CEP50
      GPSFixQuality FixQuality
      Fix quality of the GPS Constraint
      double Latitude
      WGS-84 Latitude
      double Longitude
      WGS-84 Longitude
      GPSSourceType SourceType
      Hardware source of this constraint
      GPSStatus Status
      Current GPS status in NEON Location Service
      long StatusFlags
      Extra GPS Status Flags to indicate source
      long UnixTimeMs
      Timestamp of the GPS Constraint in Unix Time Ms
      • Fields inherited from interface android.os.Parcelable

        CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • UnixTimeMs

        public final long UnixTimeMs
        Timestamp of the GPS Constraint in Unix Time Ms
      • 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 ms
        sourceType - Hardware source of this constraint
        fixQuality - Fix quality of the GPS Constraint
        latitude - WGS-84 Latitude
        longitude - WGS-84 Longitude
        errorCEP - Error radius in meters CEP50
        status - GPS status for this constraint
        statusFlags - Source information for GPS Status
    • Method Detail

      • describeContents

        public int describeContents()
        Specified by:
        describeContents in interface android.os.Parcelable
      • writeToParcel

        public void writeToParcel​(android.os.Parcel dest,
                                  int flags)
        Specified by:
        writeToParcel in interface android.os.Parcelable