Ana içeriğe atla
GET
/
v1
/
alarms
/
geometries
/
district
/
{districtId}
İlçe detayını getir
curl --request GET \
  --url https://api.iklim.co/v1/alarms/geometries/district/{districtId}
{
  "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

districtId
integer
required

İlçe ID

Response

İşlem başarılı

İlçe sınır nesnesi

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