JSON Format

This is the Format which can be used with the OpenDataMap by using "iot-mapper"

{
"version": 1,
"nodes": [
{
"latitude": 50.124,
"longitude": 7.234,
"showOnMap": true,
"name": "nodeName",
"dB": number,
"time": string,
"gateways": [
{
"latitude": 50.524,
"longitude": 7.534,
"showOnMap": true,
"name": "gatewayName",
"dB": number
}
]
}
]
}

nodes (Array)

nodes is the Array where the node-Objects are in.

"nodes": [
{
"latitude": 50.124,
"longitude": 7.234,
"showOnMap": true,
"name": "nodeName",
"dB": -113,
"time": "2007-12-24T18:21Z"
"gateways": [
{
"latitude": 50.524,
"longitude": 7.534,
"showOnMap": true,
"name": "gatewayName",
"dB": -113
}
]
}
],

latitude/longitude (Number)

latitude and longitude are Number/Integer. They will be used to display the node on the map.

JavaScript
JavaScript
"latitude": 50.124,
"longitude": 7.234,
"showOnMap": true

or if you want to disable showing a node set it to 0 and showOnMap to false if the node doesn't have coordinates.

"latitude": 0,
"longitude": 0,
"showOnMap": false

name (String)

name is a String. It will be used to add a tooltip on the map and add the node at the sidebar.

"name": "Node 1"

dB (Number)

dB is a Number. It will be used to change the color of the node on the map from blue to red, depending on the receiving strength

"dB": -113

gateway (Array)

gateways is the Array where the gateway-Objects are in.

"gateways": [
{
"latitude": 50.524,
"longitude": 7.534,
"showOnMap": true,
"name": "gatewayName",
"dB": -113
}
],

latitude/longitude (Number)

latitude and longitude are Number/Integer. They will be used to display the gateway on the map.

JavaScript
JavaScript
"latitude": 50.124,
"longitude": 7.234,
"showOnMap": true

or if you want to disable showing a gateway set it to 0 and showOnMap to false if the gateway doesn't have coordinates.

"latitude": 0,
"longitude": 0,
"showOnMap": false

name (String)

name is a String. It will be used to add a tooltip on the map and add the gateway at the sidebar.

"name": "Node 1"

dB (Number)

dB is a Number. It will be used to change the color of the line fron the node to the gateway on the map from blue to red, depending on the receiving strength

"dB": -113

config

config is the Object where all config attributes of the layer are defined.

"config": {
"name": "layerName"
}

name (String)

name is a String. It will be used for the Name of the Layer and the name of the tab in the sidebar.

"name": "This is my First Layer"JSON-Format
This is the Format which can be used with the OpenDataMap by using "iot-mapper"
{
"version": 1,
"nodes": [
{
"latitude": 50.124,
"longitude": 7.234,
"showOnMap": true,
"name": "nodeName",
"dB": number,
"time": string,
"gateways": [
{
"latitude": 50.524,
"longitude": 7.534,
"showOnMap": true,
"name": "gatewayName",
"dB": number
}
]
}
]
}
nodes (Array)
nodes is the Array where the node-Objects are in.
"nodes": [
{
"latitude": 50.124,
"longitude": 7.234,
"showOnMap": true,
"name": "nodeName",
"dB": -113,
"time": "2007-12-24T18:21Z"
"gateways": [
{
"latitude": 50.524,
"longitude": 7.534,
"showOnMap": true,
"name": "gatewayName",
"dB": -113
}
]
}
],
latitude/longitude (Number)
latitude and longitude are Number/Integer. They will be used to display the node on the map.
"latitude": 50.124,
"longitude": 7.234,
"showOnMap": true
or if you want to disable showing a node set it to 0 and showOnMap to false if the node doesn't have coordinates.
"latitude": 0,
"longitude": 0,
"showOnMap": false
name (String)
name is a String. It will be used to add a tooltip on the map and add the node at the sidebar.
"name": "Node 1"
dB (Number)
dB is a Number. It will be used to change the color of the node on the map from blue to red, depending on the receiving strength
"dB": -113
gateway (Array)
gateways is the Array where the gateway-Objects are in.
"gateways": [
{
"latitude": 50.524,
"longitude": 7.534,
"showOnMap": true,
"name": "gatewayName",
"dB": -113
}
],
latitude/longitude (Number)
latitude and longitude are Number/Integer. They will be used to display the gateway on the map.
"latitude": 50.124,
"longitude": 7.234,
"showOnMap": true
or if you want to disable showing a gateway set it to 0 and showOnMap to false if the gateway doesn't have coordinates.
"latitude": 0,
"longitude": 0,
"showOnMap": false
name (String)
name is a String. It will be used to add a tooltip on the map and add the gateway at the sidebar.
"name": "Node 1"
dB (Number)
dB is a Number. It will be used to change the color of the line fron the node to the gateway on the map from blue to red, depending on the receiving strength
"dB": -113
config
config is the Object where all config attributes of the layer are defined.
"config": {
"name": "layerName"
}
name (String)
name is a String. It will be used for the Name of the Layer and the name of the tab in the sidebar.
"name": "This is my First Layer"