Location Sensor

Adding a Location Sensor to your app

To add a Location Sensor to your app:

  1. Navigate to the Blocks tab of your project.

  2. Under the App Features heading, locate Sensors.

  3. Click the ⊕ symbol next to Sensor.

  4. Select Location Sensor from the provided menu.

  5. Click Add.

You will see a settings panel where you can set the properties of the Location Sensor before clicking Submit.

Properties

Blocks

Functions

Get Current Location

Properties

Example

The Location Sensor returns a user's current location in latitude and longitude as well as a location object which includes additional properties like accuracy, altitude, speed and heading (or direction) which you have to retrieve with the object blocks above

Properties

Enable High Accuracy

Maximum Age

Last updated