Hello~. I am writing a post again^^.
Ok. to throw away inaccurate location coordinates, I need to check DOP(dilution of precision) of location coordinates obtained right after location request to RPositionServer. But TPosition has just HorizontalAccuracy(), VerticalAccuracy() in metres, and those are not DOP I guess.
I am supposed to throw away any location data of which DOP value is greater than 10 or something(maybe 20). From Series 60 Location Acquisition API Specification, HPositionGenericInfo class seems to be able to give me horizontal/vertical DOP.
The thing is I don't know how to use HPositionGenericInfo class and I tried but I couldn't find any example of it. Because my application uses TPosition class for latitude, longitude, but I can use TPosition.
Ok here's the question.
Could you let me know how to use HPositionGenericInfo class, otherwise how to deal with HorizontalAccuracy(), VerticalAccuracy() in TPosition to throw away location data which is quite inaccurate based on mathematical/scientific rationale?
TInt8 nSUsed, nSInView;
if (iGenericInfo->GetValue(EPositionFieldSatelliteNumInView, nSInView) == KErrNone &&
iGenericInfo->GetValue(EPositionFieldSatelliteNumUsed, nSUsed) == KErrNone)
// use it.
note that you can easily static_cast it to TPositionInfo and get TPosition from that, so you use the generic info class just to get the additional attributes