ManagerGeolocation

You can access this manager through the Homey instance as this.homey.geolocation

Table of Contents

Methods

getAccuracy() → {number}

Get the Homey's physical location's accuracy

Requires the homey:manager:geolocation permission. For more information about permissions read the Permissions tutorial.

Returns:
Type:
number

accuracy (in meter)

getLatitude() → {number}

Get the Homey's physical location's latitude

Requires the homey:manager:geolocation permission. For more information about permissions read the Permissions tutorial.

Returns:
Type:
number

latitude

getLongitude() → {number}

Get the Homey's physical location's longitude

Requires the homey:manager:geolocation permission. For more information about permissions read the Permissions tutorial.

Returns:
Type:
number

longitude

getMode() → {string}

Get the Homey's physical mode

Requires the homey:manager:geolocation permission. For more information about permissions read the Permissions tutorial.

Returns:
Type:
string

auto or manual

Events

.on('location')

Fired when the location is updated

Requires the homey:manager:geolocation permission. For more information about permissions read the Permissions tutorial.