Edges

Index Action

Parameter Abbreviation Data Type
source_node_id s INTEGER
target_node_id t INTEGER
network_id nid INTEGER

Output

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

Example Requests

http://api.ostar.inf.unibz.it/0/edges?s=5141
{
  "Edges": [
    2003061
  ],
  "StatusCode": 0
}

Show Action

Parameter Abbreviation Data Type
network_id nid INTEGER

Output

{
  "Edge": {
    "Id": <INTEGER>,
    "Name": <STRING>,
    "SourceNodeId": <INTEGER>,
    "TargetNodeId": <INTEGER>,
    "Length": <DOUBLE (in meters)>,
    "LineString": <LINESTRING>,
    "Modified": <DATETIME>
  },
  "StatusCode": <INTEGER>
}

Example Requests

http://api.ostar.inf.unibz.it/0/edges/2003178
{
  "Edge": {
    "Id": 2003178,
    "Name": null,
    "SourceNodeId": 5167,
    "TargetNodeId": 5168,
    "Length": 25.0,
    "LineString": "11.3344241607516,46.503005128427 11.3345849264184,46.5028095356789",
    "Modified": "2013-01-30T17:20:25+01:00"
  },
  "StatusCode": 0
}

Mutlishow Action

Parameter Abbreviation Data Type
ids ids IDS
network_id nid INTEGER

Output

{
  "Edges": [{
    "Id": <INTEGER>,
    "Name": <STRING>,
    "SourceNodeId": <INTEGER>,
    "TargetNodeId": <INTEGER>,
    "Length": <DOUBLE (in meters)>,
    "LineString": <LINESTRING>,
    "Modified": <DATETIME>
  }, ...],
  "StatusCode": <INTEGER>
}

Example Requests

http://api.ostar.inf.unibz.it/0/edges/multishow?ids=2003178,2003182
{
  "Edges": [
    {
      "Id": 2003178,
      "Name": null,
      "SourceNodeId": 5167,
      "TargetNodeId": 5168,
      "Length": 25.0,
      "LineString": "11.3344241607516,46.503005128427 11.3345849264184,46.5028095356789",
      "Modified": "2013-01-30T17:20:25+01:00"
    },
    {
      "Id": 2003182,
      "Name": null,
      "SourceNodeId": 2000135,
      "TargetNodeId": 8565,
      "Length": 31.0,
      "LineString": "11.3933376004723,46.4923237000011 11.3937283654468,46.4922534684793",
      "Modified": "2013-01-30T17:20:22+01:00"
    }
  ],
  "StatusCode": 0
}