Getting the right location successively

Post your questions and help other users.

Moderator: Martin

Post Reply
nabla
Posts: 8
Joined: 31 Oct 2013 09:53

Getting the right location successively

Post by nabla » 31 Oct 2013 10:01

Hej folks,

I'd like to get the location of my device (almost) no matter where I am. So I tried to write a flow that uses GPS as well as Network location stuff. But after the first timeout the flow stops. So do you know if there is any chance to get something like this:

Try GPS to get an exact location (< 10m).

If not successful: Try to get Network location (<60m).

If not successful: Write an error code into a file.

This would be pretty much helpful for me.

Thanks in advance,
nabla

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

Re: Getting the right location successively

Post by Martin » 31 Oct 2013 17:50

Hi,

You can do this using an exception-connection.

Create a flow with two actions:
-trigger Periodic Timer: every 5m
-action Init Variable Location: GPS
-action Init Variable Location: Network (this action attached to the GPS-action)

Select the connection between the two actions, press the edit-icon and switch the connection type to Exception.
Automagic will execute the second action only when the first one fails.

Regards,
Martin

nabla
Posts: 8
Joined: 31 Oct 2013 09:53

Re: Getting the right location successively

Post by nabla » 31 Oct 2013 22:25

Works fine, thank you very much :)

Post Reply