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

Body

application/json
stationName
string
required

Name of the station to be searched

Minimum length: 1
matchType
enum<string>
required

Match type used to indicate where the search term appears in the search field

Available options:
STARTS_WITH,
ENDS_WITH,
CONTAINS,
EQUALS
limit
integer
required

Records limit in response

Required range: 1 <= x <= 100
sort
enum<string>

Records sort direction in response

Available options:
ASC,
DESC

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