Skip to main content
POST
/
v1
/
mgm-stations
/
by
/
city-district
Find Stations By City and District
curl --request POST \
  --url https://risk-api.tarla.io/v1/mgm-stations/by/city-district \
  --header 'Content-Type: application/json' \
  --data '{
  "city": "<string>",
  "district": "<string>",
  "limit": 50
}'
{
  "stationId": 123,
  "stationName": "<string>",
  "latitude": 123,
  "longitude": 123,
  "city": "<string>",
  "district": "<string>"
}

Body

application/json
city
string
required

City name is required. Find city names from 'get-cities' method

Minimum length: 1
limit
integer
required

Records limit in response

Required range: 1 <= x <= 100
district
string

District name is optional. Find district names from 'get-districts-of' method

Response

Success

Represents a weather station with its location and name

stationId
integer

Unique identifier of the weather station

stationName
string

Name of the weather station

latitude
number

Latitude coordinate of the station

longitude
number

Longitude coordinate of the station

city
string

City where the station is located

district
string

District where the station is located