Nodes

Index Action

Parameter Abbreviation Data Type
geolocation g GEOLOCATION
radius r INTEGER
limit lt INTEGER
offset ot INTEGER
network_id nid INTEGER

Notes

Output

{
  "Nodes": [<INTEGER>, ...],
  "StatusCode": <INTEGER>
}

Example Requests

http://api.ostar.inf.unibz.it/0/nodes?lt=5&ot=10&g=11.345646,46.494722&r=500
{
  "Nodes": [5314, 5315, 2000565, 2000661, 2002140],
  "StatusCode": 0
}

Show Action

Parameter Abbreviation Data Type
network_id nid INTEGER

Output

{
  "Node": {
    "Id": <INTEGER>,
    "Location": <GEOLOCATION>,
    "Modified": <DATETIME>
  },
  "StatusCode": <INTEGER>
}

Example Requests

http://api.ostar.inf.unibz.it/0/nodes/5141
{
  "Node": {
    "Id": 5141,
    "Location": "11.344021626112,46.4804152778554,0.0",
    "Modified": "2013-01-30T17:18:50+01:00"
  },
  "StatusCode": 0
}

Multishow Action

Parameter Abbreviation Data Type
ids ids IDS
network_id nid INTEGER

Output

{
  "Nodes": [{
    "Id": <INTEGER>,
    "Location": <GEOLOCATION>,
    "Modified": <DATETIME>
  }, ...],
  "StatusCode": <INTEGER>
}

Example Requests

http://api.ostar.inf.unibz.it/0/nodes/multishow?ids=5141,5142
{
  "Nodes": [
    {
      "Id": 5141,
      "Location": "11.344021626112,46.4804152778554,0.0",
      "Modified": "2013-01-30T17:18:50+01:00"
    },
    {
      "Id": 5142,
      "Location": "11.3496250310545,46.4864081887688,0.0",
      "Modified": "2013-01-30T17:18:51+01:00"
    }
  ],
  "StatusCode": 0
}