{
  "_comment": "دیتای ماک مطابق CROP_ZONING_APIS.md",
  "_source": "CROP_ZONING_APIS.md",

  "area": {
    "description": "GET /api/crop-zoning/area/ — منطقهٔ اولیه (کاربر نمی‌تواند رسم کند)",
    "response": {
      "status": "success",
      "data": {
        "area": {
          "type": "Feature",
          "properties": {},
          "geometry": {
            "type": "Polygon",
            "coordinates": [
              [[51.38, 35.68], [51.40, 35.68], [51.40, 35.70], [51.38, 35.70], [51.38, 35.68]]
            ]
          }
        }
      }
    }
  },

  "products": {
    "description": "GET /api/crop-zoning/products/",
    "response": {
      "status": "success",
      "data": {
        "products": [
          { "id": "wheat", "label": "گندم", "color": "#6bcb77" },
          { "id": "canola", "label": "کلزا", "color": "#ffd93d" },
          { "id": "saffron", "label": "زعفران", "color": "#9b59b6" }
        ]
      }
    }
  },

  "zonesInitialRequest": {
    "description": "POST /api/crop-zoning/zones/initial/ — Request Body",
    "body": {
      "zones": {
        "type": "FeatureCollection",
        "features": [
          {
            "type": "Feature",
            "geometry": {
              "type": "Polygon",
              "coordinates": [
                [[51.38, 35.68], [51.3815, 35.68], [51.3815, 35.6815], [51.38, 35.6815], [51.38, 35.68]]
              ]
            },
            "properties": { "index": 0 }
          },
          {
            "type": "Feature",
            "geometry": {
              "type": "Polygon",
              "coordinates": [
                [[51.3815, 35.68], [51.383, 35.68], [51.383, 35.6815], [51.3815, 35.6815], [51.3815, 35.68]]
              ]
            },
            "properties": { "index": 1 }
          },
          {
            "type": "Feature",
            "geometry": {
              "type": "Polygon",
              "coordinates": [
                [[51.38, 35.6815], [51.3815, 35.6815], [51.3815, 35.683], [51.38, 35.683], [51.38, 35.6815]]
              ]
            },
            "properties": { "index": 2 }
          }
        ]
      },
      "products": ["wheat", "canola", "saffron"]
    }
  },

  "zonesInitialResponse": {
    "description": "POST /api/crop-zoning/zones/initial/ — Response",
    "response": {
      "status": "success",
      "data": {
        "total_area_hectares": 23.45,
        "total_area_sqm": 234500,
        "zone_count": 3,
        "zones": [
          {
            "zoneId": "zone-0",
            "geometry": {
              "type": "Polygon",
              "coordinates": [
                [[51.38, 35.68], [51.3815, 35.68], [51.3815, 35.6815], [51.38, 35.6815], [51.38, 35.68]]
              ]
            },
            "crop": "wheat",
            "matchPercent": 85,
            "waterNeed": "۴۵۰۰-۵۵۰۰ m³/ha",
            "estimatedProfit": "۱۵-۲۵ میلیون/هکتار"
          },
          {
            "zoneId": "zone-1",
            "geometry": {
              "type": "Polygon",
              "coordinates": [
                [[51.3815, 35.68], [51.383, 35.68], [51.383, 35.6815], [51.3815, 35.6815], [51.3815, 35.68]]
              ]
            },
            "crop": "canola",
            "matchPercent": 78,
            "waterNeed": "۵۰۰۰-۶۰۰۰ m³/ha",
            "estimatedProfit": "۲۰-۳۵ میلیون/هکتار"
          },
          {
            "zoneId": "zone-2",
            "geometry": {
              "type": "Polygon",
              "coordinates": [
                [[51.38, 35.6815], [51.3815, 35.6815], [51.3815, 35.683], [51.38, 35.683], [51.38, 35.6815]]
              ]
            },
            "crop": "saffron",
            "matchPercent": 92,
            "waterNeed": "۳۰۰۰-۴۰۰۰ m³/ha",
            "estimatedProfit": "۵۰-۱۵۰ میلیون/هکتار"
          }
        ]
      }
    }
  },

  "zoneDetails": {
    "description": "GET /api/crop-zoning/zones/:zoneId/details/ — Response per zone",
    "responses": {
      "zone-0": {
        "status": "success",
        "data": {
          "zoneId": "zone-0",
          "crop": "wheat",
          "matchPercent": 85,
          "waterNeed": "۴۵۰۰-۵۵۰۰ m³/ha",
          "estimatedProfit": "۱۵-۲۵ میلیون/هکتار",
          "reason": "دمای مناسب، خاک حاصلخیز، دسترسی به آب کافی",
          "criteria": [
            { "name": "دما", "value": 82 },
            { "name": "بارش", "value": 75 },
            { "name": "خاک", "value": 88 },
            { "name": "آب", "value": 70 }
          ],
          "area_hectares": 2.25
        }
      },
      "zone-1": {
        "status": "success",
        "data": {
          "zoneId": "zone-1",
          "crop": "canola",
          "matchPercent": 78,
          "waterNeed": "۵۰۰۰-۶۰۰۰ m³/ha",
          "estimatedProfit": "۲۰-۳۵ میلیون/هکتار",
          "reason": "شرایط اقلیمی مساعد، نیاز آبی قابل تأمین",
          "criteria": [
            { "name": "دما", "value": 75 },
            { "name": "بارش", "value": 72 },
            { "name": "خاک", "value": 80 },
            { "name": "آب", "value": 78 }
          ],
          "area_hectares": 2.25
        }
      },
      "zone-2": {
        "status": "success",
        "data": {
          "zoneId": "zone-2",
          "crop": "saffron",
          "matchPercent": 92,
          "waterNeed": "۳۰۰۰-۴۰۰۰ m³/ha",
          "estimatedProfit": "۵۰-۱۵۰ میلیون/هکتار",
          "reason": "ارتفاع و آب و هوای خشک مناسب، پتانسیل سود بالا",
          "criteria": [
            { "name": "دما", "value": 90 },
            { "name": "بارش", "value": 65 },
            { "name": "خاک", "value": 95 },
            { "name": "آب", "value": 85 }
          ],
          "area_hectares": 2.25
        }
      }
    }
  },

  "areaGeoJson": {
    "description": "منطقهٔ ثابت (MOCK_AREA_GEOJSON) — polygon اصلی نقشه",
    "feature": {
      "type": "Feature",
      "properties": {},
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [[51.38, 35.68], [51.40, 35.68], [51.40, 35.70], [51.38, 35.70], [51.38, 35.68]]
        ]
      }
    }
  }
}
