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>",
  "limit": 50,
  "district": "<string>"
}
'
{
  "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 string length: 1
limit
integer<int32>
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<int32>

Unique identifier of the weather station

stationName
string

Name of the weather station

latitude
number<double>

Latitude coordinate of the station

longitude
number<double>

Longitude coordinate of the station

city
string

City where the station is located

district
string

District where the station is located