{"title":"Check room placement","fields":[{"key":"plot.width","name":"width","group":"plot","kind":"number","required":true,"description":"East-west extent of a rectangular plot, in the unit given. Send this with depth for a rectangle, or send polygon instead.","min":0,"example":30},{"key":"plot.depth","name":"depth","group":"plot","kind":"number","required":true,"description":"North-south extent of a rectangular plot, in the unit given. Send this with width for a rectangle, or send polygon instead.","min":0,"example":40},{"key":"plot.unit","name":"unit","group":"plot","kind":"tiles","required":false,"description":"Unit the plot dimensions are given in. Every distance the response returns is in this same unit. The mandala projection is scale free, so this affects the areas and the marma size and nothing else.","enum":["feet","metres"],"default":"feet","example":"feet"},{"key":"facing","name":"facing","kind":"tiles","required":true,"description":"Direction the front of the house looks out toward, one of the eight compass sectors. Case and punctuation are folded, so north-east, northeast and NorthEast all resolve. Send this or facingDegrees, never both.","enum":["North","Northeast","East","Southeast","South","Southwest","West","Northwest"],"example":"North"},{"key":"facingDegrees","name":"facingDegrees","kind":"number","required":false,"description":"Direction the front of the house looks out toward, as a compass bearing in degrees clockwise from true north, measured looking OUT from the building. The same convention the feng shui facing endpoints use, so a bearing works unchanged across the two domains. Send this or facing, never both.","min":0,"max":360,"example":15,"fold":true},{"key":"rooms.0.type","name":"type","group":"rooms.0","kind":"tiles","required":true,"description":"What the room is, one of puja, kitchen, master-bedroom, bedroom, living, dining, study, toilet, store, staircase, water-storage, entrance. Case and punctuation are folded, so Master Bedroom and master_bedroom both resolve. Four of the twelve carry a verse and the rest carry convention, and the response says which.","enum":["puja","kitchen","master-bedroom","bedroom","living","dining","study","toilet","store","staircase","water-storage","entrance"],"example":"kitchen"},{"key":"rooms.0.direction","name":"direction","group":"rooms.0","kind":"tiles","required":true,"description":"Which quarter of the plot the room sits in, if you already know it. Send this or polygon, never both.","enum":["North","Northeast","East","Southeast","South","Southwest","West","Northwest"],"example":"Southeast"},{"key":"rooms.0.polygon","name":"polygon","group":"rooms.0","kind":"array","required":false,"description":"The room outline in plot coordinates, 3 to 16 vertices. The quarter is read from the area centroid against thirds of the plot, so an L-shaped room lands where its mass is rather than where its corners are. Send this or direction, never both.","example":[{"x":20,"y":2},{"x":28,"y":2},{"x":28,"y":12},{"x":20,"y":12}]}],"hasLang":true,"repeats":[{"key":"rooms","min":1,"max":24}],"requiredAnyOf":[["facing"],["facingDegrees"]],"groups":[{"key":"plot","label":"Plot"},{},{"key":"rooms.0","label":"Rooms 1"}],"opensOnLoad":false}