Android Java SDK for Sygic 3D
 
Loading...
Searching...
No Matches
GpsPosition Class Reference

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)
 

Detailed Description

GpsPosition class is used to obtain information about GPS position, data and quality of GPS signal.

Constructor & Destructor Documentation

◆ GpsPosition() [1/2]

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() [2/2]

Class constructor.

Referenced by GpsPosition.readBundle().

Member Function Documentation

◆ getAltitude()

int getAltitude ( )

Altitude in meters.

Referenced by GpsPosition.writeBundle().

◆ getCourse()

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().

◆ getDate()

int getDate ( )

Actual GPS date.

Referenced by GpsPosition.writeBundle().

◆ getDay()

int getDay ( )

Returns the day of GMT time given by GPS.

Returns
The day of GMT time given by GPS.

◆ getHdop()

double getHdop ( )

Horizontal dilution of precision.

Notes:
Horizontal dilution of precision informs user about accuracy GPS horizontal position fixes.

Referenced by GpsPosition.writeBundle().

◆ getHour()

int getHour ( )

Returns hour of GMT time given by GPS.

Returns
Hour of GMT time given by GPS.

◆ getLatitude()

int getLatitude ( )

Latitude represents Y coordinate (geographical latitude) of location in degrees multiplied by 100000.

Referenced by GpsPosition.writeBundle().

◆ getLongitude()

int getLongitude ( )

Longitude represents X coordinate (geographical longitude) of location in degrees multiplied by 100000.

Referenced by GpsPosition.writeBundle().

◆ getMapIso()

String getMapIso ( )

ISO code of the map, in which is the current position located.

Returns
A new string to ISO code of the map, in which is the current position located

Referenced by GpsPosition.writeBundle().

◆ getMilliSeconds()

int getMilliSeconds ( )

Returns milliseconds of GMT time given by GPS.

Returns
Milliseconds of GMT time given by GPS.

◆ getMinute()

int getMinute ( )

Returns minute of GMT time given by GPS.

Returns
Minute of GMT time given by GPS.

◆ getMonth()

int getMonth ( )

Returns the month of GMT time given by GPS.

Returns
The month of GMT time given by GPS.

◆ getRealCourse()

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().

◆ getRoadOffset()

int getRoadOffset ( )

Road element offset of the road, to which is the current position snapped.

Referenced by GpsPosition.writeBundle().

◆ getSatellites()

short getSatellites ( )

Number of visible satellites.

Referenced by GpsPosition.writeBundle().

◆ getSatellitesInfo()

SatelliteInfo[] getSatellitesInfo ( )

Deprecated.

This function is not supported by Android and it returns null.

Referenced by GpsPosition.writeBundle().

◆ getSeconds()

int getSeconds ( )

Returns seconds of GMT time given by GPS.

Returns
Seconds of GMT time given by GPS.

◆ getSpeed()

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().

◆ getTime()

double getTime ( )

Actual GPS time.

Referenced by GpsPosition.writeBundle().

◆ getYear()

int getYear ( )

Returns the year of GMT time given by GPS.

Returns
The year of GMT time given by GPS.

◆ readBundle()

static GpsPosition readBundle ( Bundle b)
static

◆ setDate()

void setDate ( int date)

◆ toString()

String toString ( )

◆ writeBundle()