Android APIs
public final class

GpsSatellite

extends Object
java.lang.Object
   ↳ android.location.GpsSatellite

Class Overview

This class represents the current state of a GPS satellite. This class is used in conjunction with the GpsStatus class.

Summary

Public Methods
float getAzimuth()
Returns the azimuth of the satellite in degrees.
float getElevation()
Returns the elevation of the satellite in degrees.
int getPrn()
Returns the PRN (pseudo-random number) for the satellite.
float getSnr()
Returns the signal to noise ratio for the satellite.
boolean hasAlmanac()
Returns true if the GPS engine has almanac data for the satellite.
boolean hasEphemeris()
Returns true if the GPS engine has ephemeris data for the satellite.
boolean usedInFix()
Returns true if the satellite was used by the GPS engine when calculating the most recent GPS fix.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public float getAzimuth ()

Added in API level 3

Returns the azimuth of the satellite in degrees. The azimuth can vary between 0 and 360.

Returns
float the azimuth in degrees

public float getElevation ()

Added in API level 3

Returns the elevation of the satellite in degrees. The elevation can vary between 0 and 90.

Returns
float the elevation in degrees

public int getPrn ()

Added in API level 3

Returns the PRN (pseudo-random number) for the satellite.

Returns
int PRN number

public float getSnr ()

Added in API level 3

Returns the signal to noise ratio for the satellite.

Returns
float the signal to noise ratio

public boolean hasAlmanac ()

Added in API level 3

Returns true if the GPS engine has almanac data for the satellite.

Returns
boolean true if the satellite has almanac data

public boolean hasEphemeris ()

Added in API level 3

Returns true if the GPS engine has ephemeris data for the satellite.

Returns
boolean true if the satellite has ephemeris data

public boolean usedInFix ()

Added in API level 3

Returns true if the satellite was used by the GPS engine when calculating the most recent GPS fix.

Returns
boolean true if the satellite was used to compute the most recent fix.