Is it possible to get location from phone?

I spent some time with the examples, the simulator and the API docs, but I can't figure out if this is even possible. However it seems that this is how the weather widget on the F3 is working. So one had to rely only on the Position Module to get location info?
  • My understanding of how the std weather widget works is that it uses the GPS location known to the watch (last location - it doesn't fire up GPS), and passes that to the phone to get the data. The "companion app" on the phone is actually GCM for this case. It may just do something like a makeJsonRequest(), but I think the GCM side is a bit smarter for this and tries to pre-cache the data so there's less of a delay.

    For other weather widgets, They use the watch's GPS location, and then do a makeJsonRequest() to the weather data source through the phone.

    In this one, I fire up GPS on the watch if needed, to get the GPS location and then do the makeJsonRequest(). I also cache the weather station name and use that most times to avoid the overhead of firing up GPS.

    https://apps.garmin.com/en-US/apps/f509fc4e-7f1f-48a5-b337-ed86668c5f6c

    Others I've seen don't fire up GPS, but just use the "last known location" data (which seems to be how the native widget does it). In CIQ, that's in Act.Info, but that location can go "stale" after a period of time. It seems you'll see the native weather widget stuck at "waiting for data" when the location data is stale.
  • Thank you for your answer. Some (if not all) all API's return a forecast for X days. I'm wondering about the GPS position going "stale", as you say. Do we know what this period is? I haven't used the GPS on my watch for some days now, the weather forecast seems reasonably accurate, but my general location hasn't dramatically changed all these days. I'm planning a small trip this weekend to meet some friends. Does this mean that the weather forecast of the std weather widget will reflect my current location?
  • Thank you Shannon for your explanation. Considering that GCM is running on the phone and that location services on the phone are enabled, is it possible for a widget build with the SDK to use the phone as the location provider?
  • Thank you for your clear and definitive answer. You saved me a lot of time searching on the documentation.