# Vastu Plan Geometry Check API

Every geometry fault of a plan in one answer: a boundary, room, structure or courtyard that crosses itself or has no area, courtyards outside the outline or overlapping, rooms that overlap (a warning from 10% of the smaller room, an error from 60%), a room outside the outline, rooms that add up to more than the plot, and a unit or scale that makes the plot implausible. Also states the plan's centre convention and what it means on an L- or U-shaped plot.

- Endpoint: `POST https://api.96astroapi.com/v1/vastu/vastu-validate-geometry`
- Family: [Vastu](https://96astroapi.com/apis/vastu.md)
- Input: Specific input
- Cost: 1 credit per successful call (sandbox keys are free)
- Status: available
- Delivery: Direct response
- Output languages: en, hi, mr, bn, gu, ta, te, ml, kn, pa, ur, ne, or, as, si, fr, es, pt, de, it, nl, pl, tr, ru, ko, ja
- Web page: https://96astroapi.com/apis/vastu/vastu-validate-geometry

## Example request

```bash
curl https://api.96astroapi.com/v1/vastu/vastu-validate-geometry \
  -H "Authorization: Bearer $ASTRO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"units":"m","boundary":[[0,0],[12,0],[12,9],[0,9]],"rooms":[{"name":"Kitchen","type":"kitchen","polygon":[[9,6],[12,6],[12,9],[9,9]]},{"name":"Bedroom","type":"master_bedroom","polygon":[[8,5],[12,5],[12,9],[8,9]]}]}'
```

## Response

Every response is `{ "data": …, "meta": { "request_id", "credits_used", "warnings", "language" } }`.
The full request and response schema, with a captured example, is in the OpenAPI document: https://api.96astroapi.com/v1/openapi.json (path `/v1/vastu/vastu-validate-geometry`).
