GpsPosition class is used to obtain information about GPS position, data and quality of GPS signal. More...
Public Member Functions | |
GpsPosition (int altitude, double course, int date, double hdop, int latitude, int longitude, double realCourse, int roadOffset, short satellites, double speed, SatelliteInfo[] satInfo, double time, String mapIso) | |
GpsPosition () | |
Class constructor. | |
int | getDate () |
Actual GPS date. | |
void | setDate (int date) |
short | getSatellites () |
Number of visible satellites. | |
int | getLatitude () |
Latitude represents Y coordinate (geographical latitude) of location in degrees multiplied by 100000. | |
int | getLongitude () |
Longitude represents X coordinate (geographical longitude) of location in degrees multiplied by 100000. | |
int | getAltitude () |
Altitude in meters. | |
double | getCourse () |
Course represents speed direction in degrees(from gps signal). | |
double | getRealCourse () |
Real course(in degrees) - orientation that the car has in Sygic software. | |
double | getSpeed () |
Speed represents velocity in kilometers per hour (km/h). | |
double | getHdop () |
Horizontal dilution of precision. | |
double | getTime () |
Actual GPS time. | |
int | getRoadOffset () |
Road element offset of the road, to which is the current position snapped. | |
SatelliteInfo[] | getSatellitesInfo () |
Deprecated. | |
String | getMapIso () |
ISO code of the map, in which is the current position located. | |
int | getYear () |
Returns the year of GMT time given by GPS. | |
int | getMonth () |
Returns the month of GMT time given by GPS. | |
int | getDay () |
Returns the day of GMT time given by GPS. | |
int | getHour () |
Returns hour of GMT time given by GPS. | |
int | getMinute () |
Returns minute of GMT time given by GPS. | |
int | getSeconds () |
Returns seconds of GMT time given by GPS. | |
int | getMilliSeconds () |
Returns milliseconds of GMT time given by GPS. | |
String | toString () |
Static Public Member Functions | |
static Bundle | writeBundle (GpsPosition pos) |
static GpsPosition | readBundle (Bundle b) |
GpsPosition class is used to obtain information about GPS position, data and quality of GPS signal.
GpsPosition | ( | int | altitude, |
double | course, | ||
int | date, | ||
double | hdop, | ||
int | latitude, | ||
int | longitude, | ||
double | realCourse, | ||
int | roadOffset, | ||
short | satellites, | ||
double | speed, | ||
SatelliteInfo[] | satInfo, | ||
double | time, | ||
String | mapIso ) |
GpsPosition | ( | ) |
Class constructor.
Referenced by GpsPosition.readBundle().
int getAltitude | ( | ) |
Altitude in meters.
Referenced by GpsPosition.writeBundle().
double getCourse | ( | ) |
Course represents speed direction in degrees(from gps signal).
Notes:
Course value represents speed direction in degrees multiplied by 100000. For example if Course=1234567 real course is 12.34567°.
Course=0 represents North direction and increases in clockwise direction.
The vehicle must be moving to have a precise course.
Referenced by GpsPosition.writeBundle().
int getDate | ( | ) |
Actual GPS date.
Referenced by GpsPosition.writeBundle().
int getDay | ( | ) |
Returns the day of GMT time given by GPS.
double getHdop | ( | ) |
Horizontal dilution of precision.
Notes:
Horizontal dilution of precision informs user about accuracy GPS horizontal position fixes.
Referenced by GpsPosition.writeBundle().
int getHour | ( | ) |
Returns hour of GMT time given by GPS.
int getLatitude | ( | ) |
Latitude represents Y coordinate (geographical latitude) of location in degrees multiplied by 100000.
Referenced by GpsPosition.writeBundle().
int getLongitude | ( | ) |
Longitude represents X coordinate (geographical longitude) of location in degrees multiplied by 100000.
Referenced by GpsPosition.writeBundle().
String getMapIso | ( | ) |
ISO code of the map, in which is the current position located.
Referenced by GpsPosition.writeBundle().
int getMilliSeconds | ( | ) |
Returns milliseconds of GMT time given by GPS.
int getMinute | ( | ) |
Returns minute of GMT time given by GPS.
int getMonth | ( | ) |
Returns the month of GMT time given by GPS.
double getRealCourse | ( | ) |
Real course(in degrees) - orientation that the car has in Sygic software.
RealCourse=0 represents East direction and increases in clockwise direction.
Referenced by GpsPosition.writeBundle().
int getRoadOffset | ( | ) |
Road element offset of the road, to which is the current position snapped.
Referenced by GpsPosition.writeBundle().
short getSatellites | ( | ) |
Number of visible satellites.
Referenced by GpsPosition.writeBundle().
SatelliteInfo[] getSatellitesInfo | ( | ) |
Deprecated.
This function is not supported by Android and it returns null.
Referenced by GpsPosition.writeBundle().
int getSeconds | ( | ) |
Returns seconds of GMT time given by GPS.
double getSpeed | ( | ) |
Speed represents velocity in kilometers per hour (km/h).
Notes:
If vehicle speed is shown in miles speed must be transformed to this units. Value stored in Speed is still in km/h units.
Referenced by GpsPosition.writeBundle().
double getTime | ( | ) |
Actual GPS time.
Referenced by GpsPosition.writeBundle().
int getYear | ( | ) |
Returns the year of GMT time given by GPS.
|
static |
References GpsPosition.GpsPosition(), and SatelliteInfo.readBundle().
Referenced by ApiNavigation.getActualGpsPosition().
void setDate | ( | int | date | ) |
String toString | ( | ) |
|
static |
References GpsPosition.getAltitude(), GpsPosition.getCourse(), GpsPosition.getDate(), GpsPosition.getHdop(), GpsPosition.getLatitude(), GpsPosition.getLongitude(), GpsPosition.getMapIso(), GpsPosition.getRealCourse(), GpsPosition.getRoadOffset(), GpsPosition.getSatellites(), GpsPosition.getSatellitesInfo(), GpsPosition.getSpeed(), GpsPosition.getTime(), and SatelliteInfo.writeBundle().