Discussion Board

Results 1 to 2 of 2
  1. #1
    Nokia Developer Expert
    Join Date
    Mar 2003

    Using WRT Location API. The default timeout is too short for indoor condition

    You are using the Location API and get the timeout error (1016) when indoor?

    Probably all the positioning methods (A-GPS, Integrated GPS, Network based) are enabled in your Location server (check from Location app).

    If this is the case, remember to increase the timeout value to about 2 minutes (instead of 15 seconds by default). This will give the server enough time to reach the "least" priority "Network based" module before the timeout expires.

    var updateoptions = new Object();
    updateoptions.PartialUpdates = false;
    updateoptions.UpdateTimeOut = 120000000; //2 minute

    var criteria = new Object();
    criteria.LocationInformationClass = "BasicLocationInformation";
    criteria.Updateoptions = updateoptions;

    var result = service_object.ILocation.GetLocation(criteria, locCallback);

    + Phong Vu

  2. #2
    Super Contributor
    Join Date
    May 2008
    Helsinki, Finland

    Re: Using WRT Location API. The default timeout is too short for indoor condition


    I am lifting this up as there was at least one recent query that did handle this same issue.
    This is something good to remember as many are now getting the most out of mobile location use case
    in WRT widgets.

    [FONT="Comic Sans MS"][COLOR="Blue"][/COLOR][I]Marko Lumivuori
    Technical Support
    +358 40 8019330

Similar Threads

  1. Location Based Services - Location API - JSR179
    By aminuddin09 in forum Mobile Java General
    Replies: 9
    Last Post: 2011-02-23, 19:39
  2. S60 API Partnering Program
    By Nokia Ron in forum News and Announcements
    Replies: 9
    Last Post: 2008-04-16, 18:28
  3. Using the Location Acquisition API in Series 60 3rd edition
    By gpalvia in forum Symbian Networking & Messaging (Closed)
    Replies: 7
    Last Post: 2007-08-29, 06:56
  4. Location API, but no GPS
    By redsmurph in forum Mobile Java General
    Replies: 3
    Last Post: 2007-01-30, 20:59

Posting Permissions

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