hi,
i am unable to get latitude and longitude in my application.The code that i have used in my application give below.Please give me a link if this code is wrong. please help me...
Code:User::LeaveIfError(iLocationServer.Connect()); // open positioner User::LeaveIfError(iPositioner.Open(iLocationServer)); // set our application as location requestor User::LeaveIfError(iPositioner.SetRequestor( CRequestor::ERequestorService, CRequestor::EFormatApplication, *iAppName)); // set maximum allowed time for a location request TTimeIntervalMicroSeconds timeOut(30000000); // 30 sec TPositionUpdateOptions updateOptions; updateOptions.SetUpdateTimeOut(timeOut); User::LeaveIfError(iPositioner.SetUpdateOptions(updateOptions)); iPositioner.NotifyPositionUpdate(iPositionInfo, iStatus); TPosition pos; iPositionInfo.GetPosition(pos); aLatitude = pos.Latitude(); aLongitude = pos.Longitude();

Reply With Quote

