location_accuracy not set

Post your questions and help other users.

Moderator: Martin

Post Reply
oxb6k662
Posts: 1
Joined: 07 Sep 2013 13:22

location_accuracy not set

Post by oxb6k662 » 07 Sep 2013 13:54

Dear all,

when I use the Trigger "Standort" (German, English: "location"?) and then check location_accuracy, it is always "0.0". The documentation says it would be set.

If I use the action "initialize location variables", it is set, but that takes again some time, so I want to avoid this workaround.

Is this a bug or my fault?

cheers

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: location_accuracy not set

Post by Martin » 07 Sep 2013 14:58

Hi,

This is a bug in the documentation and a bug in the location trigger since Android does not even provide an accuracy when a location alert is triggered. The location trigger in Automagic by mistake uses the default value of zero to set the accuracy in this case. I will remove the accuracy variable from the location trigger documentation in the next update.
You have to use an action Init Variable Location to properly set up all location variables. I will extend the action to fetch the last known location from Android which is available immediately and should be up to date in such cases.

Regards,
Martin

Post Reply