How to write a scripting code of Scripting, plugin of JOSM, to make Gridify or terracer to equally dividing into specific number of blocks, such as terraced house or parking space, on given numbers, and if variable is support, define number to divide on grid or terraces on each source object and have tgem spilt to prodefined number, in such way, how to have the predefined number on the grid
For Example, I have 100 terraced houses group outlines with 4 nodes rectangle exactly, I want divide on longer axle with a various of 3-15 houses, done at once, how to have JOSM scripting to write such code? Am I have to run each dividing number each time, or I can have a variable to complete at once and each outline have correctly divided?
This is I had get generated using Copilot, to handle the “spitting a row unit of blocks from a 4 nodes closed outline“, e.g. spilt terraced house or individual parking space (single and straight row), which number of unit pre-defined on tag so variable number of unit can be handled at once
Running with Javascript with Graaljs, need JDK 21 to run