Zovo Floor Plan

v1.0.0
io.github.theluckystrike/floor-plan Checked 4 days ago Published 28 days ago

Turns room sizes into a floor plan drawn to scale, with the area of each room and the total area.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

make_floor_plan Make floor plan

Use this when the user wants a floor plan, room layout or apartment plan drawn to scale from room sizes, for example "draw a floor plan: living 5x4 m, kitchen 3x4 m next to it" or "plan of my house in feet". Takes rooms as rectangles (width east-west, length north-south) in metres or feet and inches, placed by x/y or right_of/below/left_of/above another room, plus optional doors and windows by wall and offset, a scale (auto, 1:50, 1:100, 1/4in=1ft) and a page size. Returns each room area, the total area, an interactive plan, and SVG, PDF and CSV downloads. Refuses overlapping rooms and opening…

ParameterTypeDescription
rooms *arrayRooms as rectangles, up to 40. A room with no position goes to the right of the previous room. Example: [{"name":"Living","width":5,"length":4},{"name":"Kitchen","width":3,"length":4,"right_of":"Livin…
doorsarrayDoors, up to 60, e.g. [{"room":"Living","wall":"south","offset":1,"width":0.9}]. Drawn as a gap with a swing arc.
north_arrowbooleanDraw a north arrow pointing up (default true).
page_sizestringPDF and SVG paper: auto (default: A4 for metres, Letter for feet), a4, a3, letter or tabloid. Orientation is chosen to fit.
scalestringauto (default: the largest standard scale that fits one page), a ratio like "1:50" or "1:100", or an architect scale like "1/4in=1ft" or "1/8in=1ft".
titlestringPlan title, e.g. "Ground floor". Up to 80 characters.
unitsstringUnit for plain numbers. m (default), cm or mm: a metric plan, sizes like 3.5, "350 cm" or "3500 mm"; ft or in: a feet-and-inches plan, sizes like 12'6", "12 ft 6 in", "12.5 ft" or "150 in". With cm, a…
windowsarrayWindows, up to 60, e.g. [{"room":"Kitchen","wall":"east","offset":1,"width":1.2}].

check_floor_plan Check floor plan

Use this when the user wants to check a room layout before drawing it, or asks why a floor plan was refused, for example "do these rooms overlap?" or "what is the total area of these rooms?". Takes the same rooms, doors and windows as make_floor_plan. Returns the area table, the sum of room areas, the floor area actually covered, and a list of problems: overlapping rooms with the overlap area, doors or windows that run past a wall end, L-shaped parts that overlap or do not touch, and rooms that do not touch the rest. Does not draw the plan and does not check building codes.

ParameterTypeDescription
rooms *arrayRooms as rectangles, up to 40. A room with no position goes to the right of the previous room. Example: [{"name":"Living","width":5,"length":4},{"name":"Kitchen","width":3,"length":4,"right_of":"Livin…
doorsarrayDoors, up to 60, e.g. [{"room":"Living","wall":"south","offset":1,"width":0.9}]. Drawn as a gap with a swing arc.
titlestringPlan title, e.g. "Ground floor". Up to 80 characters.
unitsstringUnit for plain numbers. m (default), cm or mm: a metric plan, sizes like 3.5, "350 cm" or "3500 mm"; ft or in: a feet-and-inches plan, sizes like 12'6", "12 ft 6 in", "12.5 ft" or "150 in". With cm, a…
windowsarrayWindows, up to 60, e.g. [{"room":"Kitchen","wall":"east","offset":1,"width":1.2}].