# Vastu: zone ids, feature ids and the rules the analysis checks

> `POST /v1/vastu/analyze` takes a floor plan as a map from zone to features - `{"NE": ["pooja"], "SE": ["kitchen"]}` - and reports each zone's status and any doshas. These are the ids it accepts.

Source: https://astronode.dev/reference/vastu-zones-and-features · Updated: 2026-12-04

The request needs `facing` (`N`, `NE`, `E`, `SE`, `S`, `SW`, `W` or `NW`) and `kind` (`home`, `apartment`, `plot`, `office` or `shop`), and takes `zones` and an optional `doorPosition` (1-8 along the facing side).

Unknown zone ids, unknown feature ids and an empty layout are rejected with `400 VALIDATION_ERROR`.

## Zones

| zone | element | Deity (dikpala) | Planet | Classical use | Modern use |
| --- | --- | --- | --- | --- | --- |
| `N` | `water` | Kubera | Mercury | - | wealth, careers, entrances |
| `NE` | `water` | Īśāna | Jupiter | Deva apartment / pooja | pooja, water, kept open & light |
| `E` | `air` | Indra | Sun | - | entrances, light, mornings |
| `SE` | `fire` | Agni | Venus | Kitchen | kitchen, fire, electricals |
| `S` | `fire` | Yama | Mars | - | bedrooms, heavier use |
| `SW` | `earth` | Nairṛti | Rahu | Household-utensils room / storage | master bedroom, heavy storage |
| `W` | `water` | Varuṇa | Saturn | - | dining, children, study |
| `NW` | `air` | Vāyu | Moon | Treasury + granary | guest room, storage, movement |
| `center` | `-` | - | - | - | - |

- **Classical use** - set only where the classical text fixes one; elsewhere `null`, and the analysis reports a neutral status for most placements there.

- **Element, deity and planet** - the widely used mapping, not tied to a single verse.

## Features

| Feature id | Label | Weight | Water | Fire |
| --- | --- | --- | --- | --- |
| `entrance` | Main entrance | `neutral` | no | no |
| `kitchen` | Kitchen | `neutral` | no | yes |
| `master_bedroom` | Master bedroom | `heavy` | no | no |
| `bedroom` | Bedroom | `neutral` | no | no |
| `pooja` | Pooja / prayer room | `light` | no | no |
| `toilet` | Toilet | `neutral` | yes | no |
| `bathroom` | Bathroom | `neutral` | yes | no |
| `staircase` | Staircase | `heavy` | no | no |
| `water_tank_overhead` | Overhead water tank | `heavy` | yes | no |
| `water_tank_underground` | Underground water tank | `light` | yes | no |
| `borewell` | Borewell / well | `light` | yes | no |
| `living` | Living room | `neutral` | no | no |
| `dining` | Dining | `neutral` | no | no |
| `study` | Study | `light` | no | no |
| `store` | Store room | `heavy` | no | no |
| `cash_locker` | Cash / locker | `heavy` | no | no |
| `open_space` | Open space | `light` | no | no |
| `septic` | Septic tank | `neutral` | yes | no |

- **Weight** - `heavy` features favour the south-west and south, `light` ones the north-east and east; water and fire features have their own favoured zones.

## Things to watch

- The analysis checks 7 rules: `brahmasthan-built`, `ne-fire`, `ne-heavy`, `ne-defiled`, `kitchen-misplaced`, `water-misplaced`, `door-at-corner`. Each dosha in the response names the rule, the reason and the source it rests on.
- Vastu is a traditional design system, not engineering or structural advice. Show the response's disclaimer with the result.

## Example: POST /v1/vastu/analyze

Recorded `POST /v1/vastu/analyze` response (zones cut to two).

```json
{
  "data": {
    "facing": "E",
    "kind": "home",
    "zones": [
      {
        "zone": "N",
        "element": "water",
        "devatas": [
          "Diti",
          "Aditi"
        ],
        "classicalUse": null,
        "placed": [
          "living"
        ],
        "status": "neutral",
        "note": "No classical placement signal for what's here."
      },
      {
        "zone": "NE",
        "element": "water",
        "devatas": [
          "Agni",
          "Āpa"
        ],
        "classicalUse": "Deva apartment / pooja",
        "placed": [
          "pooja",
          "open_space"
        ],
        "status": "aligned",
        "note": "pooja in NE matches BS v.118."
      }
    ]
  }
}
```

## Questions

**Which endpoints does this page apply to?**

1 endpoint: Vastu Analysis (`POST /v1/vastu/analyze`).

## Endpoints

- [`POST /v1/vastu/analyze`](https://astronode.dev/capabilities/vastu/vastu-analyze) - Vastu Analysis API
