Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ILatLongReport::GetLatitude method

Retrieves the latitude, in degrees. The latitude is between -90 and 90, where north is positive.

Syntax


HRESULT GetLatitude(
  [out]  DOUBLE *pLatitude
);

Parameters

pLatitude [out]

Address of a DOUBLE that receives the latitude.

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 GetLatitude.


DOUBLE latitude = 0;  
// Print the Latitude
if (SUCCEEDED(spLatLongReport->GetLatitude(&latitude)))
{
    wprintf(L"Latitude: %f\n", latitude);
}


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

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.