Skip to content
Developer guide10 min read

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.

Fictional pixel-space plan with two rectangular rooms joined by an opening and unresolved metric scale
Original educational schematic of the downloadable fixture. Pixel geometry only; no verified metric scale or model output.

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.

Choose the output your application actually consumes
ConsumerRequestHold for review
ViewerPage-space polygons and image transformMisaligned or unresolved regions
EstimatorCounts and calibrated quantities with evidenceUnknown scale or scope
CoordinatorTags, references and source revisionsUnmatched 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.

Run a buyer acceptance test before integration
ScenarioAcceptance question
Same request repeatedDoes one logical job produce one downstream record?
Scale cannot be confirmedAre metric quantities withheld?
New extraction revisionAre prior decisions preserved with their original evidence?
Late completion notificationDoes 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.

Start here

Try it on a drawing of your own

Reading about this is one thing. Send one sheet and we will run it through our models and send back what they find, with an overlay you can hold against the original.
  • One sheet is enough — PDF, DXF or a scan
  • Back in about 2 business days, with an annotated overlay
  • No call required, NDA on request

Send us one sheet

We run it through our floor plan models and send back the extracted data with an annotated overlay, so you can see what comes off your own drawings before anyone books a call.

  • Back in about 2 business days
  • PDF, DXF or a scan
  • NDA on request

After your enquiry is sent, you’ll go to Calendly to choose a discovery-call time. Booking is optional.

This is our base model, before any tuning for you. On a paid project we train it further on your own drawings, which is where the rest of the accuracy comes from. So this shows you the starting point, not the best we can do.

By submitting, you agree to our Privacy Policy. We never share your details.

Get in touch

Tell us what is on your drawings

Describe the sheets you get and what you need off them. We will tell you what our models already handle, what needs fine-tuning on your drawings, and what is not worth automating at all.

Reply time
Within 1 business day

Would rather show than tell? Send one sheet for a free analysis

After your enquiry is sent, you’ll go to Calendly to choose a discovery-call time. Booking is optional.

We reply within 1 business day.

By submitting, you agree to our Privacy Policy. We never share your details.

Drawing intelligence

Let’s start with your drawing.

Where should we send the next step?