×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    3

    N97 Location Error code 1016

    I'm catching a location using the following code below and is showing Error 1016. Does anyone know if I have to put something in my code, because in 5530 it works perfectly.

    The code:

    var serviceObj = null;

    window.onload = init;

    // Initializes the widget
    function init() {
    // Obtain the Location service object
    try {
    serviceObj = device.getServiceObject("Service.Location", "ILocation");
    } catch (ex) {
    alert("Service object cannot be found.");
    return;
    }

    // We are interested in basic location information (longitude, latitude
    // and altitude) only, so let's define the criteria respectively
    var criteria = new Object();
    criteria.LocationInformationClass = "BasicLocationInformation";

    // Obtain the location information (synchronous)
    var result = serviceObj.ILocation.GetLocation(criteria);
    var latitude = result.ReturnValue.Latitude;
    var longitude = result.ReturnValue.Longitude;

    // Display the location
    alert("Lat. " + latitude + ", Long. " + longitude);
    }


    Thank you.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: N97 Location Error code 1016

    have a look into here: http://tools.ext.nokia.com/wrt/WDL/1...757320B7E.html . 1016 means ServiceTimedOut.

  3. #3
    Registered User
    Join Date
    Jan 2008
    Posts
    3

    Re: N97 Location Error code 1016

    Is there any change for the N97?

    For what is the function getLocation in location-sample.js, I do in my code.

    Thanks.

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: N97 Location Error code 1016

    I suppose you would get the ServiceTimedOut, when the location fetching takes too long. So first make sure you are outdoors and you have great visibility of the satelites in 3 different directions. Also older firmwares could have slower GPS (though not certain if this is issue with N97), so you could always try updating the device firmware to be the latest one available.

  5. #5
    Registered User
    Join Date
    Jan 2008
    Posts
    3

    Re: N97 Location Error code 1016

    Thanks symbianyucca,

    Worked properly, I noticed that the variable "latitude" behaves differently on the device 5530,
    because he does not get the value minus your latitude if you have it,
    this behavior does not happen in N97.

Similar Threads

  1. location errorcode 1016
    By florianhaar in forum Symbian
    Replies: 13
    Last Post: 2010-08-10, 11:58
  2. Qt Mobility Location on Nokia N97
    By santijdelatorre in forum [Archived] Qt Mobility Project
    Replies: 14
    Last Post: 2010-05-27, 10:54

Posting Permissions

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