GARMIN weather service location names

We are using 3.2.x SDK GARMIN service to get weather info and location name as well.

But we are having some problems, as it does not seem to return labels for every city, or even whole countries.

We get a null string if we set the location anywhere at London, for instane... This is causing some discontent.

Do we have a list of where they are not returning any value so we can, at least, warn our users?

Thanks a lot!

  • Everything in currentConditions should be null checked.  Including location. 

    If it's null, just display something like "No Loc"

    BTW, even something like temperature can be null!

  • Another thing, when in doubt, look at the Garmin Weather Widget.

  • You should keep in mind, if permission 'Positioning' is not set in mainfest, location name in currentWeather is (allways?) null (ok, is not root cause, if only some regions are affected).

    Alternative solution - to gather location name in case of null - is to get location names via web request for current location (there are free APIs). If no bluetooth connection I agree to Jim, simply inform user.

  • observationLocationPosition will have your location (if it's not null), but doing a lookup on that would require a background service in case of a watch face.  I've done tests and what you do see is your location, not the location for the source of the weather data.

  • yep, sure. But might be better than nothing ...

  • Actually, it's just one case where something in currentConditions can be null (per the API doc),  

    I've seen temperature being null for example, so for all cases I do the null checks, and handle things pretty much the same way as "No Loc".  If a temperature or humidly is null, I'll display "--" for example.

  • Yes, we are already doing that. The code is null/fail safe even for reading the hour... and all exceptions handled. Our problem is not that, it is the data that we (do not) get form the service Slight smile

  • That is right for weather conditions (and they are always going to display the same, as we use the same data source), but not for location name, as it is not displayed in the widget... Disappointed

  • Yep, the watchface does not crash, and shows a nice "Unknown location" message to the user... no matter how bad the data is. The problem is that most users do not understand that they see a "Unknown location" message when they are in the middle of London... And this happens a lot around the world, for what we are being reported.

    We just wanted to know if they plan to include this data, and if there is a list for the places that stil do not have a "name label", so we can warn...

    Yes, I can also give up GARMIN weather services, and use any other web source...

  • For my apps, widgets and watchfaces I decided to keep web requests for weather information, because most of the devices around the world are excluded from :Weather, like F5, FR645 and others ... so only a specific widget I left with Garmin Weather