×

Fuel station list

This API gets a list of fuel stations (gas stations) including coordinates, type, and description.

How to get data

Method

GET

Request address

To get the data, use the address: https://<server_address>/api/api.php?

Request parameters

  • cmd=azs — API command to get the list of fuel stations
  • node — node number where the command should be executed

Example request

https://<server_address>/api/api.php?cmd=azs&node=1
Response
{
   "code": 0,
   "msg": "OK",
   "list": [
       {
           "lat": "50.5",
           "lon": "30.3643",
           "type_id": 8,
           "type_name": "RosBerlio",
           "descr": "<b>WOG Gas Station</b><br>Phone: (+38033)2787914<br>Address: Okr. Road, Berkovetskaya St, 6, between Varshavska and Zhytomyr Tr., near Auchan and Epicenter"
       },
       {
           "lat": "50.6586",
           "lon": "29.8808",
           "type_id": 8,
           "type_name": "RosBerlio",
           "descr": "<b>AviaCom Gas Station</b><br>Phone: (+38045)7752175<br>Address: 56 km of M-07 (E-373) Kyiv-Kovel-Yagodyn-Lublin"
       },
       {
           "lat": "55.551",
           "lon": "53.4085",
           "type_id": 8,
           "type_name": "RosBerlio",
           "descr": "<b>Proton-A LLC Gas Station</b><br>Phone: 8-919-680-07-77<br>Address: 1130 km of M7 highway, Tatarstan, Aktanyshsky District (left side)"
       }
   ]
}
In response to the API request, the following is returned:
  • code — result code (0 = success)
  • msg — server message (e.g., "OK")
  • list — array of fuel station objects, each containing:
  • lat — latitude of the station
  • lon — longitude of the station
  • type_id — fuel station type ID
  • type_name — fuel station type name
  • descr — station description including address and contact phone