×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    20

    How to get current GPS location

    Hi

    I am develop fl 3.0 application. I need current GPS location and open google map site with current Longitude and Latitude.

    This code is not working in N96:
    import com.nokia.lib.Service;
    var location = new Service("Service.Location", "ILocation");
    var inParams = {LocationInformationClass:"GenericLocationInfo"};
    var outParams = location.GetLocation(inParams);
    if (outParams.ErrorCode == 0) {
    var outList = outParams.ReturnValue;
    var longitude = outList.Longitude;// Contains longitudinal data
    var latitude = outList.Latitude;// Contains latitudinal data
    } else {
    var errorId = outParam.ErrorCode;
    }


    Thanks
    videoFx

  2. #2
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Smile Re: How to get current GPS location

    Quote Originally Posted by videoFx View Post
    Hi

    I am develop fl 3.0 application. I need current GPS location and open google map site with current Longitude and Latitude.

    This code is not working in N96:
    import com.nokia.lib.Service;
    var location = new Service("Service.Location", "ILocation");
    var inParams = {LocationInformationClass:"GenericLocationInfo"};
    var outParams = location.GetLocation(inParams);
    if (outParams.ErrorCode == 0) {
    var outList = outParams.ReturnValue;
    var longitude = outList.Longitude;// Contains longitudinal data
    var latitude = outList.Latitude;// Contains latitudinal data
    } else {
    var errorId = outParam.ErrorCode;
    }


    Thanks
    videoFx
    Please post 1 problem once . This is a double post .Your question was answered here :
    http://discussion.forum.nokia.com/fo...861#post568861
    Hope it helps...

    Best Regards,
    SajiSoft

  3. #3
    Registered User
    Join Date
    Apr 2008
    Location
    India / Singapore
    Posts
    549

    Re: How to get current GPS location

    Hello,
    I would like to add that an article on how to use Google Maps API from Flash Lite 3 has been authored and published in Adobe Forums. You may look at it, as a supporting material.
    Twitter - manikantan_k
    Just in --

Similar Threads

  1. JSR-179API provider reset to stop GPS location activity
    By nicholso in forum Mobile Java General
    Replies: 15
    Last Post: 2009-02-06, 11:33
  2. Error in packaging process :(
    By a-eqla3 in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2008-07-24, 20:33

Posting Permissions

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