Get Station Location Data

Request Parameters

Parameter

Description

Obligatory

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

http://192.168.1.1:9080/api/stations/geo.ds?id=StationForFunctional1

XML and JSON response structure examples are described below.

 

XML Response

<drweb-es-api api_version="4.3.0" timestamp="1561465709" server="192.168.1.1" srv_version="12.00.0.201909260" status="true">
  <stations total="1">
     <station id="88e984a0-6031-11e9-5b7e-f4ffebd769bf" name="StationForFunctional1">
        <longitude>15000000</longitude>

        <latitude>12000000</latitude>

        <country>RU</country>

        <province>Test_region</province>

        <city>Test_town</city>

        <street>Test_avenue</street>
     </station>
  </stations>
</drweb-es-api>

 

Description of XML Response Parameters

The <stations /> element contains information on all requested 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 Structure

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

    "timestamp": 1561465731,

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

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

      "version": "12.00.0.201909260",
      "uuid": "76b05bc0-8691-11e9-63e5-7036cecd07fa"}},

"data": {
    "total": 1,

    "list": [{
      "city": "Test_town",

      "country": "RU",

      "id": "88e984a0-6031-11e9-5b7e-f4ffebd769bf",

      "latitude": 12000000,

      "longitude": 15000000,

      "name": "StationForFunctional1",

      "province": "Test_region",
      "street": "Test_avenue"}]}}

 

Description of JSON Response Parameters

The data block contains information on all requested 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 on all requested stations.

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