×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    4

    receive langitude,longitude can not

    Helo.guys
    i am a new symbian developer.recently,i have developed an gps application.i receive langitude,but i can not get longitude.
    Plz help me.

    Thanks.
    Code:
    void CGetPosition::ConstructL()
    	{
            aLatitude = 0.0;
    	aLongitude=0.0;
    	_LIT(KCntApp, "LBSSapmple_0xE6847F47");
    	User::LeaveIfError(iLocationServer.Connect());  
    	User::LeaveIfError(iPositioner.Open(iLocationServer));
    	User::LeaveIfError(iPositioner.SetRequestor(
    		  CRequestor::ERequestorService, CRequestor::EFormatApplication,KCntApp));
    	TTimeIntervalMicroSeconds timeOut1(30000000); // 30 sec	  
    	TPositionUpdateOptions updateOptions;
    	updateOptions.SetUpdateTimeOut(timeOut1);
    	TTimeIntervalMicroSeconds timeOut2(10000000);
    	updateOptions.SetUpdateInterval(timeOut2);
    	User::LeaveIfError(iPositioner.SetUpdateOptions(updateOptions));
    
    	}
    TBool CGetPosition::FetchCurrentPostionL()
        {
           status = KRequestPending;
           iPositioner.NotifyPositionUpdate(iPositionInfo, status);   
           User::WaitForRequest(status);
           iError=status.Int();
           if (iError == KErrNone)
            {
            // success, return given position
            TPosition pos;
            iPositionInfo.GetPosition(pos);
            aLongitude = pos.Longitude();
            aLatitude = pos.Latitude();
            return ETrue;
            }
           else
        	   return EFalse;
        }

  2. #2
    Super Contributor
    Join Date
    Mar 2008
    Posts
    1,481

    Re: receive langitude,longitude can not

    There are plenty of material in FN, you can consult with those, for example
    http://www.forum.nokia.com/info/sw.n..._2_en.zip.html

Similar Threads

  1. Replies: 10
    Last Post: 2009-05-04, 06:27
  2. How to receive concatenated SMS
    By mrhuman1984 in forum General Messaging
    Replies: 0
    Last Post: 2009-01-28, 01:59
  3. MMS receive size (server side programming)
    By mihai_lihatchi in forum General Messaging
    Replies: 1
    Last Post: 2005-11-16, 15:30
  4. What is the real problem to receive data calls with Nokia TDMA cel modems?
    By jackal_jr in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2002-12-09, 09:02
  5. Replies: 0
    Last Post: 2002-12-04, 15:46

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×