Results 1 to 2 of 2
  1.    #1  
    I'm trying to obtain the lat and long for my current position when calling the GPS API using getCurrentPosition.

    The call is made when a button is pressed.
    What I notice though is that the return from the call is very quick, but it could be a matter of seconds until the actual coordinates are returned.

    So, how do you go about waiting until you know that you have the coordinates before continuing on with the code ? I mean, I want to ensure that I have my current lat and long, after I have pressed a button, but before I run the next sequence of code.

    Any help is much appreciated.
  2. moserjj's Avatar
    Posts
    468 Posts
    Global Posts
    470 Global Posts
    #2  
    just put your next step into the onsuccess call of your tracking request

Posting Permissions