Skip to content
96Astro API

Vastu

Available

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.

  • POST /v1/vastu/vastu-validate-geometry
  • 1 credit
Request
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
            ]
          ]
        }
      ]
    }'

Overview

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.

Call it with POST /v1/vastu/vastu-validate-geometry. Input: specific input. Output: JSON, as a direct response. Each successful call costs 1 credit.

  • POST /v1/vastu/vastu-validate-geometry
  • 1 credit
  • Specific input

Try it

Runs the real calculation, free and without a key, a few times a minute. For more, and for AI readings, get a free sandbox key.

Response

Ready when you are

Press Run it to see the live response here.

Example response

Fields in dataInferred from the example response: a guide to the shape, not a contract.

  • validboolean
  • statusstring
  • error_countnumber
  • warning_countnumber
  • issuesarray of object
  • centreobject
  • scaleobject
  • thresholdsobject
  • basisstring
200Example response

Captured from the live engine with a sandbox key (so credits_used is 0) and trimmed: long arrays keep their first items and image data is shortened.

Loading the example…

Request schema and every field: the Vastu reference.

FAQ

Vastu Plan Geometry Check API: common questions

4answers

Ask the team
01What does the Vastu Plan Geometry Check API return?

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. The response's data object includes valid, status, error_count, warning_count, issues, centre, scale and thresholds. See the reference for an example response.

02What input does Vastu Plan Geometry Check need?

Specific input.

03How much does a Vastu Plan Geometry Check call cost?

1 credit per successful call; a failed call is not charged. Plans and top-ups are on the pricing page.

04Can I try it before paying?

Yes. Every account gets sandbox keys and trial credits, so you can call it from your own code before choosing a plan.

Send us feedback

What is it about?