when to call Position.getInfo()

Hi all,
As a beginner to Connect IQ, I am still trying different ways of reading location info as well as compass settings in a multi page app.
Currently, in my view, I have a timer event (1000 msec) based on which I call Position.getInfo() to read the current GPS info.
In my simulation everything works fine but in the actual watch (Quatix 3), position data does not seem to change at all :(
The question is whether Position.getInfo() can be called anytime or do I have to use enableLocationEvents first ????
Thanks for your ideas.
  • Ok, here's the way you do this. (just using position doesn't fire up GPS so the position never changes)

    When you start up, you want to fire up GPS. Ie:

    Position.enableLocationEvents(Position.LOCATION_CONTINUOUS, method(:onPosition));

    (there is also a LOCATION_ONESHOT if you only need the current location and then GPS can be turned off)

    The way I do this is then, in the "onPostion() function I have something like this (it's passed the current info when it changes):
    function onPosition(info) {
    var latLon = info.position.toDegrees();
    ....
    }

    in onPosition you can do things based on things like the signal quality, etc, and save off the current lat/lon in a class global.