class TPosition : public TLocality |
This class is the standard data structure for retrieving location information. It adds a time dimension to the inherited TLocality information. This enables the speed to be calculated from two TPosition instances.
The time reflects the system time (that is, the mobile terminal) of when the location fix was obtained. It does not indicate the time as obtained from the position technology (for example network or satellite time).
The time is contained in a TTime data structure that provides microsecond resolution. However, it should be noted that system clocks only provide a resolution of milliseconds or indeed hundredths of a second.
Public Member Functions | |
---|---|
TPosition() | |
TPosition(const TLocality &, TTime) | |
IMPORT_C void | SetCurrentTime() |
IMPORT_C void | SetTime(TTime) |
IMPORT_C TInt | Speed(const TPosition &, TReal32 &) |
IMPORT_C TInt | Speed(const TPosition &, TReal32 &, TReal32 &) |
IMPORT_C TTime | Time() |
Protected Attributes | |
---|---|
TTime | iTime |
Private Attributes | |
---|---|
TUint8 | iReserved |
Inherited Attributes | |
---|---|
TCoordinate::iAltitude | |
TCoordinate::iDatum | |
TCoordinate::iLatitude | |
TCoordinate::iLongitude | |
TLocality::iHorizontalAccuracy | |
TLocality::iVerticalAccuracy |
IMPORT_C TInt | Speed | ( | const TPosition & | aPosition, |
TReal32 & | aSpeed | |||
) | const |
IMPORT_C TInt | Speed | ( | const TPosition & | aPosition, |
TReal32 & | aSpeed, | |||
TReal32 & | aDelta | |||
) | const |
TTime | iTime | [protected] |
This is the system time when the position related member data was obtained.