Automate

Automate

Make your phone or tablet smarter with automation

Get it on Google Play

Location get

An action block that gets the current device location, geographic coordinate.

If the proceed option is set to Maybe immediately, then the fiber will only proceed immediately if the known location fix is younger that the maximum fix age, otherwise the fiber will pause until a fresh fix has been acquired. If set to When changed, then the fiber will pause until the location has changed by at least the minimum distance.

The GPS and High accuracy providers may not be able to acquire a location fix while the device is indoors, since the GPS needs a clear view of the sky.

Note! Using “task killer” apps or the Android 5+ “power save mode” may interfere with location reporting. The “doze” feature of Android 6+ will also cause location reporting to become unreliable. Try setting the following apps (if present) to “Not optimized” in the system Battery, Battery optimization (menu) settings:

  • Automate
  • Google Services Framework
  • Fused Location
  • Maps (Google)
  • Motorola Sensor Service

Options

  • Proceed — when the fiber should proceed.

Input arguments

  • Location provider — location provider to use, default is Balanced.
  • Maximum fix age — maximum age of known location fix, default is no age limit, only used with proceed Maybe immediately.
  • Minimum distance — minimum distance for location change, default is 100 meters, only used with proceed When changed.

Output variables

  • Location fix latitude — variable to assign the latitude of location fix.
  • Location fix longitude — variable to assign the latitude of location fix.
  • Location fix altitude — variable to assign the altitude of location fix in meters (very inaccurate), null if unavailable.
  • Location fix bearing — variable to assign the bearing of location fix in degrees, null if unavailable.
  • Location fix speed — variable to assign the speed of location fix in meter/second, null if unavailable.
  • Location fix accuracy — variable to assign the estimated accuracy of location fix in meters, null if unavailable.
  • Location fix timestamp — variable to assign the unix timestamp when the location fix was aquired.
  • Location fix provider — variable to assign the provider of the location fix, null if unknown.
Note! This documentation can also be found in the Help & feedback menu of the app.