×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Oct 2011
    Posts
    34

    Handling timeout on geolocation

    hello everybody, I retrieve user location by the following code, but where should I handle timeout? Is it in the error callback function? If so, how should I do it? Thanks in advance.
    Onur

    Code:
    nokia.device.load("geolocation").getCurrentPosition(     
    	function(position){
                    //success
    	},
    	function(positionError){
    		//error
    	},
    	{
    		timeout:30000 // miliseconds
    	}
    );

  2. #2
    Super Contributor
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    833

    Re: Handling timeout on geolocation

    Hi Onur,

    You are on right track. You can catch it in error callback. Position error object will have code 3 (TIMEOUT) in case timeout occurs.
    http://www.developer.nokia.com/Resou...or-object.html

    Br,
    Ilkka

  3. #3
    Registered User
    Join Date
    Oct 2011
    Posts
    34

    Re: Handling timeout on geolocation

    Thanks, Ilkka that's what I searched for, but I wasn't able to find it

Similar Threads

  1. Geolocation problem on N8
    By sangramp@cybage.com in forum [Archived] Flash Lite on Nokia Devices
    Replies: 3
    Last Post: 2011-07-07, 22:27
  2. fast geolocation
    By twtb in forum Symbian
    Replies: 3
    Last Post: 2011-05-30, 22:27
  3. How use Geolocation api in symbian
    By soni_neeraj in forum Symbian
    Replies: 5
    Last Post: 2010-08-05, 08:17
  4. HTTP Example client handling of Network Timeout
    By yannifan in forum Symbian Networking & Messaging (Closed)
    Replies: 4
    Last Post: 2010-07-18, 17:29
  5. Geolocation on browser
    By anushshetty in forum Symbian
    Replies: 1
    Last Post: 2010-07-01, 16:18

Posting Permissions

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