Coordinates
hub.coordinates.set
Version: 1.0
Classes: UI
Title: Core(Basement) categories
Description: Set latitude/longitude to the hub
parameters:
Field | Type | Required | Description |
---|---|---|---|
longitude | float32 | + | longitude value |
latitude | float32 | + | latitude value |
return result fields:
Empty result or error which could occur by the internal issue.
Here is it an example of usage:
call:
{
"id": "_ID_",
"jsonrpc": "2.0",
"method": "hub.coordinates.set",
"params": {
"latitude" : 49.9808100,
"longitude" : 36.2527200
}
}
reply:
{
"error": null,
"id": "_ID_",
"result": {}
}
hub.coordinates.get
Version: 1.0
Classes: UI
Title: Core(Basement) categories
Description: Get current latitude/longitude of the hub.
parameters:
No parameters required.
return result fields:
result will contain latitude and longitude values. See the table below
Field | Type | Required | Description |
---|---|---|---|
longitude | float32 | + | longitude value |
latitude | float32 | + | latitude value |
Here is it an example of usage:
call:
{
"id": "_ID_",
"jsonrpc": "2.0",
"method": "hub.coordinates.get",
"params": {}
}
reply:
{
"error": null,
"id": "_ID_",
"result": {
"latitude" : 49.9808100,
"longitude" : 36.2527200
}
}