← All endpoints / Vastu

Vastu Purusha Mandala

POST/api/v1/vastu/mandala
POSThttps://vedintelastroapi.com/api/v1/vastu/mandala

Computes the full 81-pada (9×9) Vastu Purusha Mandala grid over a plot. Each pada polygon is clipped to the actual plot boundary. Returns row/col position, zone (8-direction or BRAHMA), Brahmasthan membership, clipped polygon, and area per pada.

Request Body (application/json)

FieldRequiredTypeDescription
api_keyNostringVedIntel API key (or use X-API-Key header)
plotYesstringPlot polygon: array of {x, y} vertices (min 3; open or closed — a last vertex equal to the first is accepted)
north_angleNonumberTrue North bearing (degrees clockwise) of your plan +Y axis. Every bearing is converted with true bearing = bearing + north_angle, and polygons are rotated into a True North frame. Default: 0
langNostringResponse language code. Default: en

Example Request

curl -X POST "https://vedintelastroapi.com/api/v1/vastu/mandala" \
  -H "Content-Type: application/json" \
  -d '{
  "api_key": "YOUR_API_KEY",
  "plot": "VALUE",
  "north_angle": 0,
  "lang": "en"
}'

Example Response

{
  "status": 200,
  "response": {
    "calculation": {
      "grid": {
        "rows": 9,
        "cols": 9,
        "total_padas": 81,
        "pada_width": 2.222222,
        "pada_height": 1.111111,
        "coordinate_frame": "Rotated so that +Y = True North (north_angle applied). Grid projected over the bounding box of the rotated plot."
      },
      "plot": {
        "area": 200,
        "centroid": {
          "x": 10,
          "y": 5
        },
        "bounding_box": {
          "minX": 0,
          "maxX": 20,
          "minY": 0,
          "maxY": 10
        }
      },
      "brahmasthan": {
        "rows": "4–6",
        "cols": "4–6",
        "area": 22.22,
        "centroid": {
          "x": 10,
          "y": 5
        },
        "is_fully_in_plot": true
      },
      "totals": {
        "total_area": 200,
        "brahmasthan_area": 22.22222222222223
      },
      "padas": [
        {
          "pada_id": "R1C1",
          "row": 1,
          "col": 1,
          "zone": "SW",
          "is_brahmasthan": false,
          "polygon": [
            {
              "x": 0,
              "y": 1.111111
            },
            {
              "x": 0,
              "y": 0
            },
            {
              "x": 2.222222,
              "y": 0
            },
            {
              "x": 2.222222,
              "y": 1.111111
            }
          ],
          "area": 2.47,
          "in_plot": true
        }
      ]
    },
    "rule_evaluation": null,
    "interpretation": null,
    "metadata": {
      "geometry_engine_version": "1.0.0",
      "vastu_rules_version": "1.0.0",
      "coordinate_system": "cartesian_true_north",
      "north_reference": "true_north",
      "north_angle_applied_deg": 0,
      "precision": {
        "bearing_dp": 2,
        "area_dp": 2,
… response truncated for display. See the interactive docs for the full schema.
← Back to all endpointsInteractive Docs
Get a free API key →