location

Protocol bindings for all geolocation operations.

Usage

1
client.location(location).then(callback);

Parameters

Param Type Details
location Object the new location

Example

location.js
1
2
3
4
5
// get the current geo location
client.location(function(err,res) { ... });

// set the current geo location
client.location({latitude: 121.21, longitude: 11.56, altitude: 94.23})