Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <LbsPositionCalc.h>
Link against: lbsselflocate.lib
This item is not part of the S60 5th Edition SDK

Class TPositionCalc

class TPositionCalc;

Description

Members

Defined in TPositionCalc:


Member functions


GetDistance(const TCoordinate &,const TCoordinate &,TReal32 &)

IMPORT_C static TInt GetDistance(const TCoordinate &aStartCoor, const TCoordinate &aStopCoor, TReal32 &aDistance);

Description

Calculate distance between two TCoordinates

Parameters

const TCoordinate &aStartCoor

const TCoordinate &aStopCoor

TReal32 &aDistance

Return value

TInt

The calculation error


GetDistance(const TLocality &,const TLocality &,TReal32 &,TReal32 &)

IMPORT_C static TInt GetDistance(const TLocality &aStartLoc, const TLocality &aStopLoc, TReal32 &aDistance, TReal32 &aDelta);

Description

Calculate distance between two TLocality

Parameters

const TLocality &aStartLoc

const TLocality &aStopLoc

TReal32 &aDistance

TReal32 &aDelta

Return value

TInt

The calculation error


GetBearing(const TCoordinate &,const TCoordinate &,TReal32 &)

IMPORT_C static TInt GetBearing(const TCoordinate &aStartCoor, const TCoordinate &aStopCoor, TReal32 &aBearing);

Description

Calculate distance between two TCoordinates

Parameters

const TCoordinate &aStartCoor

const TCoordinate &aStopCoor

TReal32 &aBearing

Return value

TInt

The calculation error


GetBearing(const TLocality &,const TLocality &,TReal32 &,TReal32 &)

IMPORT_C static TInt GetBearing(const TLocality &aStartLoc, const TLocality &aStopLoc, TReal32 &aBearing, TReal32 &aDelta);

Description

Calculate distance between two TLocality

Parameters

const TLocality &aStartLoc

const TLocality &aStopLoc

TReal32 &aBearing

TReal32 &aDelta

Return value

TInt

The calculation error


GetSpeed(const TPosition &,const TPosition &,TReal32 &)

IMPORT_C static TInt GetSpeed(const TPosition &aStartPos, const TPosition &aStopPos, TReal32 &aSpeed);

Description

Calculate distance between two TPositions

Parameters

const TPosition &aStartPos

const TPosition &aStopPos

TReal32 &aSpeed

Return value

TInt

The calculation error


GetSpeed(const TPosition &,const TPosition &,TReal32 &,TReal32 &)

IMPORT_C static TInt GetSpeed(const TPosition &aStartPos, const TPosition &aStopPos, TReal32 &aSpeed, TReal32 &aDelta);

Description

Calculate distance between two TPositions

Parameters

const TPosition &aStartPos

const TPosition &aStopPos

TReal32 &aSpeed

TReal32 &aDelta

Return value

TInt

The calculation error


Translate(const TCoordinate &,const TReal32 &,const TReal32 &,TCoordinate &)

IMPORT_C static TInt Translate(const TCoordinate &aStartCoor, const TReal32 &aDistance, const TReal32 &aBearing, TCoordinate &aStopCoor);

Description

Translate the stop coordinate by start point and given distance and bearing between two TCoordinates

Parameters

const TCoordinate &aStartCoor

const TReal32 &aDistance

const TReal32 &aBearing

TCoordinate &aStopCoor

Return value

TInt

The calculation error