Class NmeaDataSource.Location.SatelliteInfo

  • Enclosing class:
    NmeaDataSource.Location

    public static final class NmeaDataSource.Location.SatelliteInfo
    extends Object
    Represents a NMEA satellite info. This contains information about a satellite visible at the location.
    Since:
    100.3.0
    • Constructor Detail

      • SatelliteInfo

        public SatelliteInfo​(int id,
                             double elevation,
                             double azimuth,
                             boolean isInUse)
        Constructs a SatelliteInfo.
        Parameters:
        id - the id of the satellite
        elevation - the satellite's elevation in radians
        azimuth - the satellite's azimuth in radians
        isInUse - indicates if the satellite was used in the calculation of the location, true if it was used, otherwise false
        Since:
        100.3.0
    • Method Detail

      • getId

        public int getId()
        Gets the ID of the satellite.
        Returns:
        the ID of the satellite
        Since:
        100.3.0
      • getElevation

        public double getElevation()
        Gets the elevation of the satellite, in radians.
        Returns:
        the elevation of the satellite, in radians
        Since:
        100.3.0
      • getAzimuth

        public double getAzimuth()
        Gets the azimuth of the satellite, in radians.
        Returns:
        the azimuth of the satellite, in radians
        Since:
        100.3.0
      • isInUse

        public boolean isInUse()
        Gets whether the satellite was used in calculation of the location.
        Returns:
        true if the satellite was used for calculation of the location, otherwise false
        Since:
        100.3.0