Ana içeriğe atla
GET
/
v1
/
alarms
/
geometries
/
districts
/
{cityId}
İlçeleri listele
curl --request GET \
  --url https://api.iklim.co/v1/alarms/geometries/districts/{cityId}
[
  {
    "id": 557,
    "name": "Çankaya",
    "polygon": {
      "coordinates": [
        {
          "lng": 32.857358,
          "lat": 39.93504
        },
        {
          "lng": 32.858,
          "lat": 39.9355
        }
      ]
    },
    "city": {
      "id": 6,
      "name": "Ankara",
      "licensePlateCode": 6,
      "polygon": {
        "coordinates": [
          {
            "lng": 32.857358,
            "lat": 39.93504
          },
          {
            "lng": 32.858,
            "lat": 39.9355
          }
        ]
      }
    }
  }
]

Path Parameters

cityId
string
required

Şehir ID

Response

İşlem başarılı

id
integer

İlçe ID

Example:

557

name
string

İlçe adı

Example:

"Çankaya"

polygon
object

Coğrafi poligonu

city
object

Şehir sınır nesnesi