# Inspector API: UAT quick start

UAT runs on **sample data only**. You only need two calls: log in to get a token, then send a shape to `POST /api/inspect`.

- Base URL: `https://uat.lumasystem.com`
- Full reference: [https://uat.lumasystem.com/docs](https://uat.lumasystem.com/docs)
- Postman: [Download the collection](https://uat.lumasystem.com/collection.json) (import it, set the `password` variable, run **1. Login**, then send any case)

## 1. Log in

```bash
curl -s -X POST https://uat.lumasystem.com/api/auth/login \
  -H "Content-Type: application/json" \
  -d '{"email":"client@uat.lumasystem.com","password":"<your password>"}'
```

The response has `token`. Send it as `Authorization: Bearer <token>` on every inspect call.
Only one login is active per account: a new login ends the previous token. `POST /api/auth/logout` ends it right away.

## 2. Inspect

`POST /api/inspect` takes a GeoJSON Geometry (Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon) or a Feature wrapping one, coordinates as `[lng, lat]`. The response lists:

- `intersects`: the map layers the shape touches
- `zones`: every village it touches, with its registration stage (1 → 2 → 3)

## Sample cases

| # | Case | Type | Red zones (intersects) | Villages | Status |
|---|---|---|---|---|---|
| 1 | [Point inside a red zone](#point-inside-a-red-zone) | `Point` | `protected-area-moe` | 0 | 200 |
| 2 | [Point inside another red zone](#point-inside-another-red-zone) | `Point` | `forest-cover` | 0 | 200 |
| 3 | [Point inside two overlapping red zones](#point-inside-two-overlapping-red-zones) | `Point` | `protected-area-moe`, `protected-area-moe-2` | 1 | 200 |
| 4 | [Point outside every red zone](#point-outside-every-red-zone) | `Point` | none | 0 | 200 |
| 5 | [Line entering a red zone](#line-entering-a-red-zone) | `LineString` | `protected-area-moe` | 0 | 200 |
| 6 | [Line clipping the edge of a red zone](#line-clipping-the-edge-of-a-red-zone) | `LineString` | `protected-area-moe` | 2 | 200 |
| 7 | [Line outside every red zone](#line-outside-every-red-zone) | `LineString` | none | 0 | 200 |
| 8 | [MultiLineString, one part in a red zone](#multilinestring-one-part-in-a-red-zone) | `MultiLineString` | `forest-cover` | 0 | 200 |
| 9 | [MultiLineString outside every red zone](#multilinestring-outside-every-red-zone) | `MultiLineString` | none | 0 | 200 |
| 10 | [Area inside a red zone](#area-inside-a-red-zone) | `Polygon` | `forest-cover` | 1 | 200 |
| 11 | [Area partly overlapping a red zone](#area-partly-overlapping-a-red-zone) | `Polygon` | `forest-cover` | 0 | 200 |
| 12 | [Area covering a whole red zone](#area-covering-a-whole-red-zone) | `Polygon` | `protected-area-moe`, `protected-area-moe-2` | 1 | 200 |
| 13 | [Area outside every red zone](#area-outside-every-red-zone) | `Polygon` | none | 0 | 200 |
| 14 | [MultiPolygon in two different red zones](#multipolygon-in-two-different-red-zones) | `MultiPolygon` | `forest-cover`, `protected-area-moe` | 1 | 200 |
| 15 | [MultiPolygon, one part in a red zone](#multipolygon-one-part-in-a-red-zone) | `MultiPolygon` | `protected-area-moe` | 0 | 200 |
| 16 | [MultiPolygon outside every red zone](#multipolygon-outside-every-red-zone) | `MultiPolygon` | none | 0 | 200 |
| 17 | [Error: shape too large](#error-shape-too-large) | `Polygon` | — | — | 400 |
| 18 | [Error: invalid coordinates](#error-invalid-coordinates) | `Point` | — | — | 400 |
| 19 | [Error: unsupported type](#error-unsupported-type) | `GeometryCollection` | — | — | 400 |

## Point

<h3 id="point-inside-a-red-zone">1. Point inside a red zone</h3>



```bash
curl -s -X POST https://uat.lumasystem.com/api/inspect \
  -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"type":"Point","coordinates":[103.56,11.71]}'
```

Response `200`:

```json
{
  "geometry": {
    "type": "Point",
    "coordinates": [
      103.56,
      11.71
    ]
  },
  "intersects": [
    {
      "key": "protected-area-moe",
      "name": "Protected areas MOE",
      "label": "តំបន់ការពារធម្មជាតិ ក្រសួងបរិស្ថាន"
    }
  ],
  "zones": []
}
```

<h3 id="point-inside-another-red-zone">2. Point inside another red zone</h3>



```bash
curl -s -X POST https://uat.lumasystem.com/api/inspect \
  -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"type":"Point","coordinates":[104.345,11.605]}'
```

Response `200`:

```json
{
  "geometry": {
    "type": "Point",
    "coordinates": [
      104.345,
      11.605
    ]
  },
  "intersects": [
    {
      "key": "forest-cover",
      "name": "Forest cover",
      "label": "ព្រំប្រទលដែនគម្របព្រៃឈើឆ្នាំ២០០២"
    }
  ],
  "zones": []
}
```

<h3 id="point-inside-two-overlapping-red-zones">3. Point inside two overlapping red zones</h3>

Where two zones overlap, both are listed.

```bash
curl -s -X POST https://uat.lumasystem.com/api/inspect \
  -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"type":"Point","coordinates":[103.45,11.95]}'
```

Response `200`:

```json
{
  "geometry": {
    "type": "Point",
    "coordinates": [
      103.45,
      11.95
    ]
  },
  "intersects": [
    {
      "key": "protected-area-moe",
      "name": "Protected areas MOE",
      "label": "តំបន់ការពារធម្មជាតិ ក្រសួងបរិស្ថាន"
    },
    {
      "key": "protected-area-moe-2",
      "name": "Protected areas MOE 2",
      "label": "តំបន់សហគមន៍នៃតំបន់ការពារធម្មជាតិ អនុក្រឹត្យ២៤៥"
    }
  ],
  "zones": [
    {
      "code": "03030303",
      "name": "ភូមិគំរូ៣ ឃុំគំរូ ស្រុកគំរូ ខេត្តគំរូ",
      "type": "ភូមិ",
      "village": "គំរូ៣",
      "registration": {
        "stage": 1,
        "label": "កំពុងចុះបញ្ជី",
        "stages": [
          {
            "stage": 1,
            "label": "កំពុងចុះបញ្ជី",
            "done": true,
            "current": true
          },
          {
            "stage": 2,
            "label": "ការផ្សព្វផ្សាយជាសាធារណៈ",
            "done": false,
            "current": false
          },
          {
            "stage": 3,
            "label": "បោះពុម្ភប័ណ្ណកម្មសិទ្ធិ",
            "done": false,
            "current": false
          }
        ]
      }
    }
  ]
}
```

<h3 id="point-outside-every-red-zone">4. Point outside every red zone</h3>

An empty list means the shape is clear.

```bash
curl -s -X POST https://uat.lumasystem.com/api/inspect \
  -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"type":"Point","coordinates":[103,10.5]}'
```

Response `200`:

```json
{
  "geometry": {
    "type": "Point",
    "coordinates": [
      103,
      10.5
    ]
  },
  "intersects": [],
  "zones": []
}
```

## LineString

<h3 id="line-entering-a-red-zone">5. Line entering a red zone</h3>

Starts outside and ends inside a zone.

```bash
curl -s -X POST https://uat.lumasystem.com/api/inspect \
  -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"type":"LineString","coordinates":[[103.52,11.71],[103.57,11.71]]}'
```

Response `200`:

```json
{
  "geometry": {
    "type": "LineString",
    "coordinates": [
      [
        103.52,
        11.71
      ],
      [
        103.57,
        11.71
      ]
    ]
  },
  "intersects": [
    {
      "key": "protected-area-moe",
      "name": "Protected areas MOE",
      "label": "តំបន់ការពារធម្មជាតិ ក្រសួងបរិស្ថាន"
    }
  ],
  "zones": []
}
```

<h3 id="line-clipping-the-edge-of-a-red-zone">6. Line clipping the edge of a red zone</h3>

Only the first stretch is inside; any overlap counts.

```bash
curl -s -X POST https://uat.lumasystem.com/api/inspect \
  -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"type":"LineString","coordinates":[[103.6,11.75],[103.61,11.755],[103.625,11.76]]}'
```

Response `200`:

```json
{
  "geometry": {
    "type": "LineString",
    "coordinates": [
      [
        103.6,
        11.75
      ],
      [
        103.61,
        11.755
      ],
      [
        103.625,
        11.76
      ]
    ]
  },
  "intersects": [
    {
      "key": "protected-area-moe",
      "name": "Protected areas MOE",
      "label": "តំបន់ការពារធម្មជាតិ ក្រសួងបរិស្ថាន"
    }
  ],
  "zones": [
    {
      "code": "02020202",
      "name": "ភូមិគំរូ២ ឃុំគំរូ ស្រុកគំរូ ខេត្តគំរូ",
      "type": "ភូមិ",
      "village": "គំរូ២",
      "registration": {
        "stage": 2,
        "label": "ការផ្សព្វផ្សាយជាសាធារណៈ",
        "stages": [
          {
            "stage": 1,
            "label": "កំពុងចុះបញ្ជី",
            "done": true,
            "current": false
          },
          {
            "stage": 2,
            "label": "ការផ្សព្វផ្សាយជាសាធារណៈ",
            "done": true,
            "current": true
          },
          {
            "stage": 3,
            "label": "បោះពុម្ភប័ណ្ណកម្មសិទ្ធិ",
            "done": false,
            "current": false
          }
        ]
      }
    },
    {
      "code": "02020203",
      "name": "ភូមិគំរូ៤ ឃុំគំរូ ស្រុកគំរូ ខេត្តគំរូ",
      "type": "ភូមិ",
      "village": "គំរូ៤",
      "registration": {
        "stage": 3,
        "label": "បោះពុម្ភប័ណ្ណកម្មសិទ្ធិ",
        "stages": [
          {
            "stage": 1,
            "label": "កំពុងចុះបញ្ជី",
            "done": true,
            "current": false
          },
          {
            "stage": 2,
            "label": "ការផ្សព្វផ្សាយជាសាធារណៈ",
            "done": true,
            "current": false
          },
          {
            "stage": 3,
            "label": "បោះពុម្ភប័ណ្ណកម្មសិទ្ធិ",
            "done": true,
            "current": true
          }
        ]
      }
    }
  ]
}
```

<h3 id="line-outside-every-red-zone">7. Line outside every red zone</h3>



```bash
curl -s -X POST https://uat.lumasystem.com/api/inspect \
  -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"type":"LineString","coordinates":[[103,10.5],[103.05,10.55]]}'
```

Response `200`:

```json
{
  "geometry": {
    "type": "LineString",
    "coordinates": [
      [
        103,
        10.5
      ],
      [
        103.05,
        10.55
      ]
    ]
  },
  "intersects": [],
  "zones": []
}
```

## MultiLineString

<h3 id="multilinestring-one-part-in-a-red-zone">8. MultiLineString, one part in a red zone</h3>

The first line runs into a zone; the second is outside.

```bash
curl -s -X POST https://uat.lumasystem.com/api/inspect \
  -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"type":"MultiLineString","coordinates":[[[104.33,11.62],[104.345,11.62]],[[103,10.5],[103.05,10.55]]]}'
```

Response `200`:

```json
{
  "geometry": {
    "type": "MultiLineString",
    "coordinates": [
      [
        [
          104.33,
          11.62
        ],
        [
          104.345,
          11.62
        ]
      ],
      [
        [
          103,
          10.5
        ],
        [
          103.05,
          10.55
        ]
      ]
    ]
  },
  "intersects": [
    {
      "key": "forest-cover",
      "name": "Forest cover",
      "label": "ព្រំប្រទលដែនគម្របព្រៃឈើឆ្នាំ២០០២"
    }
  ],
  "zones": []
}
```

<h3 id="multilinestring-outside-every-red-zone">9. MultiLineString outside every red zone</h3>



```bash
curl -s -X POST https://uat.lumasystem.com/api/inspect \
  -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"type":"MultiLineString","coordinates":[[[103,10.5],[103.05,10.55]],[[102.5,10.8],[102.55,10.85]]]}'
```

Response `200`:

```json
{
  "geometry": {
    "type": "MultiLineString",
    "coordinates": [
      [
        [
          103,
          10.5
        ],
        [
          103.05,
          10.55
        ]
      ],
      [
        [
          102.5,
          10.8
        ],
        [
          102.55,
          10.85
        ]
      ]
    ]
  },
  "intersects": [],
  "zones": []
}
```

## Polygon

<h3 id="area-inside-a-red-zone">10. Area inside a red zone</h3>

A small plot fully inside a zone.

```bash
curl -s -X POST https://uat.lumasystem.com/api/inspect \
  -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"type":"Polygon","coordinates":[[[104.36,11.62],[104.365,11.62],[104.365,11.625],[104.36,11.625],[104.36,11.62]]]}'
```

Response `200`:

```json
{
  "geometry": {
    "type": "Polygon",
    "coordinates": [
      [
        [
          104.36,
          11.62
        ],
        [
          104.365,
          11.62
        ],
        [
          104.365,
          11.625
        ],
        [
          104.36,
          11.625
        ],
        [
          104.36,
          11.62
        ]
      ]
    ]
  },
  "intersects": [
    {
      "key": "forest-cover",
      "name": "Forest cover",
      "label": "ព្រំប្រទលដែនគម្របព្រៃឈើឆ្នាំ២០០២"
    }
  ],
  "zones": [
    {
      "code": "05050505",
      "name": "ភូមិគំរូ៥ ឃុំគំរូ ស្រុកគំរូ ខេត្តគំរូ",
      "type": "ភូមិ",
      "village": "គំរូ៥",
      "registration": {
        "stage": 3,
        "label": "បោះពុម្ភប័ណ្ណកម្មសិទ្ធិ",
        "stages": [
          {
            "stage": 1,
            "label": "កំពុងចុះបញ្ជី",
            "done": true,
            "current": false
          },
          {
            "stage": 2,
            "label": "ការផ្សព្វផ្សាយជាសាធារណៈ",
            "done": true,
            "current": false
          },
          {
            "stage": 3,
            "label": "បោះពុម្ភប័ណ្ណកម្មសិទ្ធិ",
            "done": true,
            "current": true
          }
        ]
      }
    }
  ]
}
```

<h3 id="area-partly-overlapping-a-red-zone">11. Area partly overlapping a red zone</h3>

Only the edge of the area overlaps; any overlap counts.

```bash
curl -s -X POST https://uat.lumasystem.com/api/inspect \
  -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"type":"Polygon","coordinates":[[[104.378,11.605],[104.39,11.605],[104.39,11.608],[104.378,11.608],[104.378,11.605]]]}'
```

Response `200`:

```json
{
  "geometry": {
    "type": "Polygon",
    "coordinates": [
      [
        [
          104.378,
          11.605
        ],
        [
          104.39,
          11.605
        ],
        [
          104.39,
          11.608
        ],
        [
          104.378,
          11.608
        ],
        [
          104.378,
          11.605
        ]
      ]
    ]
  },
  "intersects": [
    {
      "key": "forest-cover",
      "name": "Forest cover",
      "label": "ព្រំប្រទលដែនគម្របព្រៃឈើឆ្នាំ២០០២"
    }
  ],
  "zones": []
}
```

<h3 id="area-covering-a-whole-red-zone">12. Area covering a whole red zone</h3>

Contains one zone completely and lies inside another.

```bash
curl -s -X POST https://uat.lumasystem.com/api/inspect \
  -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"type":"Polygon","coordinates":[[[103.42,11.92],[103.48,11.92],[103.48,11.98],[103.42,11.98],[103.42,11.92]]]}'
```

Response `200`:

```json
{
  "geometry": {
    "type": "Polygon",
    "coordinates": [
      [
        [
          103.42,
          11.92
        ],
        [
          103.48,
          11.92
        ],
        [
          103.48,
          11.98
        ],
        [
          103.42,
          11.98
        ],
        [
          103.42,
          11.92
        ]
      ]
    ]
  },
  "intersects": [
    {
      "key": "protected-area-moe",
      "name": "Protected areas MOE",
      "label": "តំបន់ការពារធម្មជាតិ ក្រសួងបរិស្ថាន"
    },
    {
      "key": "protected-area-moe-2",
      "name": "Protected areas MOE 2",
      "label": "តំបន់សហគមន៍នៃតំបន់ការពារធម្មជាតិ អនុក្រឹត្យ២៤៥"
    }
  ],
  "zones": [
    {
      "code": "03030303",
      "name": "ភូមិគំរូ៣ ឃុំគំរូ ស្រុកគំរូ ខេត្តគំរូ",
      "type": "ភូមិ",
      "village": "គំរូ៣",
      "registration": {
        "stage": 1,
        "label": "កំពុងចុះបញ្ជី",
        "stages": [
          {
            "stage": 1,
            "label": "កំពុងចុះបញ្ជី",
            "done": true,
            "current": true
          },
          {
            "stage": 2,
            "label": "ការផ្សព្វផ្សាយជាសាធារណៈ",
            "done": false,
            "current": false
          },
          {
            "stage": 3,
            "label": "បោះពុម្ភប័ណ្ណកម្មសិទ្ធិ",
            "done": false,
            "current": false
          }
        ]
      }
    }
  ]
}
```

<h3 id="area-outside-every-red-zone">13. Area outside every red zone</h3>



```bash
curl -s -X POST https://uat.lumasystem.com/api/inspect \
  -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"type":"Polygon","coordinates":[[[103,10.5],[103.01,10.5],[103.01,10.51],[103,10.51],[103,10.5]]]}'
```

Response `200`:

```json
{
  "geometry": {
    "type": "Polygon",
    "coordinates": [
      [
        [
          103,
          10.5
        ],
        [
          103.01,
          10.5
        ],
        [
          103.01,
          10.51
        ],
        [
          103,
          10.51
        ],
        [
          103,
          10.5
        ]
      ]
    ]
  },
  "intersects": [],
  "zones": []
}
```

## MultiPolygon

<h3 id="multipolygon-in-two-different-red-zones">14. MultiPolygon in two different red zones</h3>

One plot in each zone.

```bash
curl -s -X POST https://uat.lumasystem.com/api/inspect \
  -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"type":"MultiPolygon","coordinates":[[[[103.555,11.705],[103.56,11.705],[103.56,11.71],[103.555,11.71],[103.555,11.705]]],[[[104.36,11.62],[104.365,11.62],[104.365,11.625],[104.36,11.625],[104.36,11.62]]]]}'
```

Response `200`:

```json
{
  "geometry": {
    "type": "MultiPolygon",
    "coordinates": [
      [
        [
          [
            103.555,
            11.705
          ],
          [
            103.56,
            11.705
          ],
          [
            103.56,
            11.71
          ],
          [
            103.555,
            11.71
          ],
          [
            103.555,
            11.705
          ]
        ]
      ],
      [
        [
          [
            104.36,
            11.62
          ],
          [
            104.365,
            11.62
          ],
          [
            104.365,
            11.625
          ],
          [
            104.36,
            11.625
          ],
          [
            104.36,
            11.62
          ]
        ]
      ]
    ]
  },
  "intersects": [
    {
      "key": "forest-cover",
      "name": "Forest cover",
      "label": "ព្រំប្រទលដែនគម្របព្រៃឈើឆ្នាំ២០០២"
    },
    {
      "key": "protected-area-moe",
      "name": "Protected areas MOE",
      "label": "តំបន់ការពារធម្មជាតិ ក្រសួងបរិស្ថាន"
    }
  ],
  "zones": [
    {
      "code": "05050505",
      "name": "ភូមិគំរូ៥ ឃុំគំរូ ស្រុកគំរូ ខេត្តគំរូ",
      "type": "ភូមិ",
      "village": "គំរូ៥",
      "registration": {
        "stage": 3,
        "label": "បោះពុម្ភប័ណ្ណកម្មសិទ្ធិ",
        "stages": [
          {
            "stage": 1,
            "label": "កំពុងចុះបញ្ជី",
            "done": true,
            "current": false
          },
          {
            "stage": 2,
            "label": "ការផ្សព្វផ្សាយជាសាធារណៈ",
            "done": true,
            "current": false
          },
          {
            "stage": 3,
            "label": "បោះពុម្ភប័ណ្ណកម្មសិទ្ធិ",
            "done": true,
            "current": true
          }
        ]
      }
    }
  ]
}
```

<h3 id="multipolygon-one-part-in-a-red-zone">15. MultiPolygon, one part in a red zone</h3>

The first plot is inside a zone; the second is outside.

```bash
curl -s -X POST https://uat.lumasystem.com/api/inspect \
  -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"type":"MultiPolygon","coordinates":[[[[103.555,11.705],[103.56,11.705],[103.56,11.71],[103.555,11.71],[103.555,11.705]]],[[[103,10.5],[103.01,10.5],[103.01,10.51],[103,10.51],[103,10.5]]]]}'
```

Response `200`:

```json
{
  "geometry": {
    "type": "MultiPolygon",
    "coordinates": [
      [
        [
          [
            103.555,
            11.705
          ],
          [
            103.56,
            11.705
          ],
          [
            103.56,
            11.71
          ],
          [
            103.555,
            11.71
          ],
          [
            103.555,
            11.705
          ]
        ]
      ],
      [
        [
          [
            103,
            10.5
          ],
          [
            103.01,
            10.5
          ],
          [
            103.01,
            10.51
          ],
          [
            103,
            10.51
          ],
          [
            103,
            10.5
          ]
        ]
      ]
    ]
  },
  "intersects": [
    {
      "key": "protected-area-moe",
      "name": "Protected areas MOE",
      "label": "តំបន់ការពារធម្មជាតិ ក្រសួងបរិស្ថាន"
    }
  ],
  "zones": []
}
```

<h3 id="multipolygon-outside-every-red-zone">16. MultiPolygon outside every red zone</h3>



```bash
curl -s -X POST https://uat.lumasystem.com/api/inspect \
  -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"type":"MultiPolygon","coordinates":[[[[103,10.5],[103.01,10.5],[103.01,10.51],[103,10.51],[103,10.5]]],[[[102.5,10.8],[102.51,10.8],[102.51,10.81],[102.5,10.81],[102.5,10.8]]]]}'
```

Response `200`:

```json
{
  "geometry": {
    "type": "MultiPolygon",
    "coordinates": [
      [
        [
          [
            103,
            10.5
          ],
          [
            103.01,
            10.5
          ],
          [
            103.01,
            10.51
          ],
          [
            103,
            10.51
          ],
          [
            103,
            10.5
          ]
        ]
      ],
      [
        [
          [
            102.5,
            10.8
          ],
          [
            102.51,
            10.8
          ],
          [
            102.51,
            10.81
          ],
          [
            102.5,
            10.81
          ],
          [
            102.5,
            10.8
          ]
        ]
      ]
    ]
  },
  "intersects": [],
  "zones": []
}
```

## Errors

<h3 id="error-shape-too-large">17. Error: shape too large</h3>

A very large area is rejected with 400. Split big shapes into smaller ones.

```bash
curl -s -X POST https://uat.lumasystem.com/api/inspect \
  -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"type":"Polygon","coordinates":[[[103,10],[104,10],[104,11],[103,11],[103,10]]]}'
```

Response `400`:

```json
{
  "error": {
    "code": "BAD_REQUEST",
    "message": "Shape too large. Split it into smaller shapes and send them separately."
  }
}
```

<h3 id="error-invalid-coordinates">18. Error: invalid coordinates</h3>

Latitude must be between -90 and 90 (coordinates are [lng, lat]).

```bash
curl -s -X POST https://uat.lumasystem.com/api/inspect \
  -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"type":"Point","coordinates":[11.55,104.92]}'
```

Response `400`:

```json
{
  "error": {
    "code": "BAD_REQUEST",
    "message": "Invalid body",
    "details": [
      {
        "path": "coordinates",
        "message": "Position out of range: expected [longitude -180..180, latitude -90..90]"
      }
    ]
  }
}
```

<h3 id="error-unsupported-type">19. Error: unsupported type</h3>

GeometryCollection is not accepted; send each geometry separately.

```bash
curl -s -X POST https://uat.lumasystem.com/api/inspect \
  -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  -d '{"type":"GeometryCollection","geometries":[{"type":"Point","coordinates":[104.92,11.55]}]}'
```

Response `400`:

```json
{
  "error": {
    "code": "BAD_REQUEST",
    "message": "Invalid body",
    "details": [
      {
        "path": "type",
        "message": "Invalid discriminator value. Expected 'Feature' | 'Point' | 'MultiPoint' | 'LineString' | 'MultiLineString' | 'Polygon' | 'MultiPolygon'"
      }
    ]
  }
}
```
