ManagerGeolocation

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

Methods

getAccuracy

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

accuracy (in meter)

number

getLatitude

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

latitude

number

getLongitude

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

longitude

number

getMode

getMode(): string

Get the Homey's physical mode

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

Returns

auto or manual

string

Events

location

.on('location')

This event is fired when the location is updated.

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