Android Java SDK for Sygic 3D
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. 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)
 

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