Get Station Location Data

Top  Previous  Next

Request Parameters

Parameter

Description

Mandatory

id

Station identifier. This parameter can be defined in the request several times to get the location data for several stations at a time.

yes

Request Example

Response Documents Structure

XML response.

JSON response.

XML Response Structure

<drweb-avdesk-api api_version="4.1.3" timestamp="1409218679" server="192.168.1.1" srv_version="10.01.0.201707130" status="true">
<stations total="1">
<station id="93893af8-b559-4a5f-8bcf-10b90abfc6c4" name="93893af8-b559-4a5f-8bcf-10b90abfc6c4">
<longitude>30000000</longitude>
<latitude>40000000</latitude>
<country/>
<province/>
<city/>
<street/>
</station>
</stations>
</drweb-avdesk-api>

Description of XML Response Parameters

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

The <stations /> element attributes:

Attribute

Description

total

Total number of stations information on which the replay contains

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

The <station /> element attributes:

Attribute

Description

id

Station identifier

name

Station name

Additional elements with station information:

Element

Description

<country>

Country

<street>

Street

<city>

City

<province>

Province

<longitude>

Longitude

<latitude>

Latitude

JSON Response Structure

{ "head": {
  "status": true,
  "timestamp":1409218738,
  "api":{
  "version":40103
  },
  "server":{
  "name":"192.168.1.1",
  "version":1000201707130,
  "uuid": "8e6b1b9d-8952-4547-9d10-25343b6f609d"
  }
},
"data":{
  "total": 1,
  "list":

   [

    {
      "longitude":30000000,
      "street":"",
      "name":"93893af8-b559-4a5f-8bcf-10b90abfc6c4",
      "country":"",
      "id":"93893af8-b559-4a5f-8bcf-10b90abfc6c4",
      "latitude":40000000,
      "city":"",
      "province":""
    }

  ]
}
}

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 the replay contains

The list array contains information about specific stations.

Elements in the list array:

Field name

Description

longitude

Longitude

latitude

Latitude

name

Station name

id

Station identifier

country

Country

province

Province

city

City

street

Street