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. More... | |
| int | getDate () |
| Actual GPS date. More... | |
| void | setDate (int date) |
| short | getSatellites () |
| Number of visible satellites. More... | |
| int | getLatitude () |
| Latitude represents Y coordinate (geographical latitude) of location in degrees multiplied by 100000. More... | |
| int | getLongitude () |
| Longitude represents X coordinate (geographical longitude) of location in degrees multiplied by 100000. More... | |
| int | getAltitude () |
| Altitude in meters. More... | |
| double | getCourse () |
| Course represents speed direction in degrees(from gps signal). More... | |
| double | getRealCourse () |
| Real course(in degrees) - orientation that the car has in Sygic software. More... | |
| double | getSpeed () |
| Speed represents velocity in kilometers per hour (km/h). More... | |
| double | getHdop () |
| Horizontal dilution of precision. More... | |
| double | getTime () |
| Actual GPS time. More... | |
| int | getRoadOffset () |
| Road element offset of the road, to which is the current position snapped. More... | |
| SatelliteInfo[] | getSatellitesInfo () |
| Deprecated. More... | |
| String | getMapIso () |
| ISO code of the map, in which is the current position located. More... | |
| int | getYear () |
| Returns the year of GMT time given by GPS. More... | |
| int | getMonth () |
| Returns the month of GMT time given by GPS. More... | |
| int | getDay () |
| Returns the day of GMT time given by GPS. More... | |
| int | getHour () |
| Returns hour of GMT time given by GPS. More... | |
| int | getMinute () |
| Returns minute of GMT time given by GPS. More... | |
| int | getSeconds () |
| Returns seconds of GMT time given by GPS. More... | |
| int | getMilliSeconds () |
| Returns milliseconds of GMT time given by GPS. More... | |
| 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().