Floor Plan Recognition API: Schema and Integration Guide
By Floor Plan Analyzer, an AxcelerateAI practice
An overlay can look right while carrying the wrong page coordinates, revision or units. The integration contract needs to carry enough evidence for the receiving application to tell the difference.
This guide covers what to extract, how to represent it and what to test before handing output to an operational workflow.

At a glance
A floor plan recognition API turns selected drawing views into structured observations. Agree which layers to extract, their coordinate frame and evidence, how unknown fields are represented, and how jobs and reviewer decisions reach your application. Treat calibrated measurements and approved records as separate steps.
Download the fictional API result JSON
Choose the output your application actually consumes
Start with a downstream action: display a room overlay, prefill a schedule or ask a reviewer to resolve a missing opening. Specify the minimum fields and the consequence of an incorrect value. A mask can be sufficient for display; a takeoff worksheet needs documented scale, rules and an explicit review state.
Planner 5D documents a recognition task followed by access to an editable project scene. That is one useful product pattern. A developer integrating drawing evidence into an existing application should also ask how revisions, skipped pages and unknown measurements travel with the result. Our examples below describe a proposed custom contract, not that vendor’s schema.
| Consumer | Request | Hold for review |
|---|---|---|
| Viewer | Page-space polygons and image transform | Misaligned or unresolved regions |
| Estimator | Counts and calibrated quantities with evidence | Unknown scale or scope |
| Coordinator | Tags, references and source revisions | Unmatched tags and conflicting values |
References: Planner 5D developer reference: structured plan data
Separate the file, the page and the view
A PDF can contain multiple levels, elevations and enlarged details. Accept an explicit selection or return a proposed page and view inventory first. Record both a zero-based page index and any printed sheet number; one is a file position and the other is an observed label. A sheet can have multiple scale regions.
Assign an immutable document revision and give each extracted record a source page and view. Preserve crop, rotation and raster dimensions so an overlay can be drawn on the same image used for extraction. Record skipped and unsupported views; an empty result for an unprocessed page is not an observation that nothing was drawn.
Specify geometry, labels and their limits
Request room polygons, wall geometry, opening segments and text as separate layers. A wall centerline and a wall footprint are different outputs. An opening bounding box alone does not tell the consumer which wall hosts it. Keep observed text separate from a normalized room name and retain the region where it was read.
Define coordinate origin, axis directions, units, crop offsets and polygon closure. The example uses pixel coordinates, top-left origin and an implicit closing edge. For independently rotated or resized views, retain an explicit transform to the display frame; do not rely on clients guessing which orientation the model saw.
Worked example: two rooms and an unresolved scale
The downloadable fixture places two rectangles side by side on an 800 × 400 pixel image. Each is 300 × 200 pixels, so each polygon covers 60,000 square pixels. The opening spans y=180 to y=220 along the shared boundary at x=400. Both room IDs are present and both opening endpoints lie on their common edge.
A 40-pixel span is not a door width in metres. If independently confirmed scale were 0.01 metres per pixel in both axes, the rectangle area would be 60,000 × 0.01² = 6 m². That scale is hypothetical. In the fixture, calibration and square-metre areas are null. The opening relation names adjacent rooms but does not establish traversability, clearance or access rights.
The fixture deliberately uses only rooms, openings and scale. It shows a proposed payload with one unresolved layer; it does not simulate measured model accuracy or assert that unrequested walls and windows are absent.
Represent unknown, empty and unrequested separately
An extracted opening list can be empty because a searched view has no detected openings. That differs from a missing list because the layer was not requested, or a layer status indicating extraction failed. Give consumers a status for each requested layer and document which combinations are valid.
Use null with an explanation for an unresolved measurement. Reserve zero for an actual value under the agreed rule. Keep human decisions separate from job state: a completed extraction can still be pending review. An importer that treats completed as approved can send unsupported quantities downstream.
Choose polling or callbacks around the job lifecycle
A small synchronous extraction can simplify a preview, provided the caller can tolerate its response time and size. For multi-page work, a proposed asynchronous contract can return a job identifier and status URL. RFC 9110 defines 202 Accepted as acceptance for processing, without guaranteeing completion. Return result references only when available and expose terminal failure or partial output clearly.
Start with polling if the receiving application can schedule it and recover from timeouts. Use bounded backoff and stop on terminal states. If callbacks are needed, document delivery identity, authentication, retry behavior and how the recipient fetches the current state. Treat a callback as a notification: duplicate or delayed events should not reopen a finalized review.
References: IETF RFC 9110 §15.3.3: 202 Accepted
Make retries safe and revisions visible
Agree how a submission key maps to the tenant, document revision and extraction options. A retry with the same key and same inputs should resolve to the same job under a documented retention window. Reuse with different inputs should surface a conflict instead of overwriting prior work.
Keep extraction run IDs separate from entity IDs. A door can move, split into two records or be omitted in a new run. Do not promise stable cross-revision identity without an explicit matching policy. Store reviewer decisions against their evidence and require re-review when a revised result changes a field the decision depended on.
Version the contract and plan the handoff
Version the payload separately from the model and the rules used to derive fields. Agree how consumers handle new optional fields, new status values and incompatible geometry changes. Keep representative fixtures for unresolved scale, empty detection, invalid input and a partial result; validate against the actual receiving application.
For drawings, agree access scope, retention, deletion and whether files can be used for model tuning before uploading them. Keep result access scoped to the owning project. Decide which fields can appear in logs and what the support team needs to reproduce a problem without retaining drawing contents unnecessarily.
Run a buyer acceptance test before integration
Use held-out drawings from the intended workflow, with source-linked reference observations. Include a rotated scan, a multi-view page, a missing scale and a repeated submission. Check whether the rendered overlay aligns after transform, whether the importer preserves unknowns and whether a retry creates a duplicate downstream record.
Compare errors by layer and consequence. A plausible polygon with the wrong room label is different from a valid label on the wrong page. Measure reviewed output and exception workload, not just detections. Agree thresholds with the receiving team and report which inputs or fields were not evaluated.
| Scenario | Acceptance question |
|---|---|
| Same request repeated | Does one logical job produce one downstream record? |
| Scale cannot be confirmed | Are metric quantities withheld? |
| New extraction revision | Are prior decisions preserved with their original evidence? |
| Late completion notification | Does the receiver fetch current state without regressing it? |
Bring a real receiving workflow to scoping
Share an authorized sample after follow-up, along with the fields your application needs, an example of the receiving record and who can approve it. We fine-tune drawing models on your conventions and engineer the extraction, review and integration around those inputs. The related delivery case documents an existing project; the fixture is a teaching artifact, not a public endpoint or a promise that every field is available on your drawings.
Frequently asked questions
Does every plan yield square-metre areas?
Only a supported and confirmed scale can justify metric areas. Preserve pixel geometry and mark metric fields unresolved if scale is unknown.
Is the example a live API response?
It is a fictional result contract for discussion and importer testing. Endpoint shape, deployment and fields are scoped to the project.
Can a finished job be used without review?
Job completion means processing ended. Whether a field can be used depends on its evidence, review state and the receiving workflow.
References and illustration notes
Sources support the terminology and interpretation notes cited above. Worked examples and diagrams are our own educational material, not client drawings or measured project results.