Instance Methods
getAccuracy
getAccuracy(): numberGet 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)
getLatitude
getLatitude(): numberGet the Homey's physical location's latitude.
Requires the
homey:manager:geolocation
permission. For more information about permissions read the Permissions tutorial.
Returns
latitude
getLongitude
getLongitude(): numberGet the Homey's physical location's longitude
Requires the
homey:manager:geolocation
permission. For more information about permissions read the Permissions tutorial.
Returns
longitude
getMode
getMode(): stringGet the Homey's physical mode
Requires the
homey:manager:geolocation
permission. For more information about permissions read the Permissions tutorial.
Returns
auto
or manual
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.