Export (0) Print
Expand All

ILatLongReport::GetErrorRadius method

[The Win32 Location API is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. Instead, use the Windows.Devices.Geolocation API. ]

Retrieves a distance from the reported location, in meters. Combined with the location reported as the origin, this radius describes the circle in which the actual location is probably located.

Syntax


HRESULT GetErrorRadius(
  [out] DOUBLE *pErrorRadius
);

Parameters

pErrorRadius [out]

Address of a DOUBLE that receives the error radius.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Examples

The following example demonstrates how to call GetErrorRadius.


DOUBLE errorRadius = 0; 
// Print the Error Radius
if (SUCCEEDED(spLatLongReport->GetErrorRadius(&errorRadius)))
{
    wprintf(L"Error Radius: %f\n", errorRadius);
}


Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

None supported

Client

Windows 7

Header

LocationApi.h

DLL

LocationAPI.dll

See also

ILatLongReport

 

 

Community Additions

ADD
Show:
© 2015 Microsoft