Get Location Data of Stations of a Group

Request Parameters

Parameter

Description

Obligatory

id

Group identifier

yes

 

Request Example

http://192.168.1.1:9080/api/groups/geo.ds?id=20e27d73-d21d-b211-a788-85419c46f0e6

XML and JSON response structure examples are described below.

 

XML Response

<drweb-es-api api_version="4.3.0" timestamp="1510165025" server="192.168.1.1" srv_version="12.00.0.201909260" status="true">
  <stations total="2">
     <station id="999" name="WIN-7-PRO-SP1-X">
        <longitude>0</longitude>

        <latitude>0</latitude>

        <country>  </country>

        <province></province>

        <city></city>
        <street></street>
     </station>

     <station id="998" name="if">
        <longitude>3222220</longitude>

        <latitude>3333330</latitude>

        <country>EG</country>

        <province>G_region</province>

        <city>G_Town</city>
        <street>G_avenue</street>
     </station>
  </stations>
</drweb-es-api>

 

Description of XML Response Parameters

The <stations /> element contains information about all stations.

The <stations /> element attribute:

Attribute

Description

total

Total number of stations information on which is displayed in response

The <station /> element contains information about a specific station.

The <station /> element attributes:

Attribute

Description

id

Station ID

name

Station name

Nested elements of the <station /> element:

Element

Description

<longitude />

Longitude

<latitude />

Latitude

<country />

Country

<province />

Province

<city />

City

<street />

Street

 

JSON Response

{ "head": {
    "status": true,

    "timestamp": 1558521987,
    "api": {
      "version": 40300,
      "versionString": 4.3.0},

    "server": {
      "name": "192.168.1.1",

      "version": "12.00.0.201909260",
      "uuid": "27671337-e0b0-4f60-aeb0-ab1f2ca47f77"}},

"data": {
    "total": 2,

    "list": [
       {"country": "  ",

        "id": "999",

        "latitude": 0,

        "longitude": 0,
        "name": "WIN-7-PRO-SP1-X"},

       {"city": "G_Town",
        "country": "EG",

        "id": "998",

        "latitude": 3333330,

        "longitude": 3222220,

        "name": "if",

        "province": "G_region",
        "street": "G_avenue"}]}}

 

Description of JSON Response Parameters

The data block contains information on all stations.

The data block elements:

Field name

Description

total

Total number of stations information on which is displayed in response

The list array contains information about specific stations of a requested group

Elements in the list array:

Field name

Description

city

City

country

Country

id

Station ID

latitude

Latitude

longitude

Longitude

name

Station name

province

Province

street

Street