cURL
curl --request GET \ --url https://api.iklim.co/v1/alarms/forecasts/city/{cityId}
{ "id": 6, "name": "Ankara", "licensePlateCode": 6, "polygon": { "exterior": [ { "lng": 32.85, "lat": 39.93 }, { "lng": 32.86, "lat": 39.93 }, { "lng": 32.86, "lat": 39.94 }, { "lng": 32.85, "lat": 39.94 }, { "lng": 32.85, "lat": 39.93 } ], "holes": [ [ { "lng": 32.852, "lat": 39.932 }, { "lng": 32.853, "lat": 39.932 }, { "lng": 32.853, "lat": 39.933 }, { "lng": 32.852, "lat": 39.933 }, { "lng": 32.852, "lat": 39.932 } ] ] } }
Returns city boundary info for the given city ID.
City ID
OK
City administrative boundary data.
Unique city identifier.
6
Official city name.
"Ankara"
Turkish licence-plate code for the city.
City boundary polygon (GeoJSON ring coordinates).
Show child attributes