Skip to main content
When a fielder captures a pole or midspan in Cloneable Field (iOS), the app stores the complete measurement document in the data object’s measurement_data field. When an office engineer traces or refines heights in Cloneable Office (Cable Tracing / Pole Inspect), those edits are stored in the annotations field on the same object.

How pole measurements work

  1. Field capture (iOS): The fielder photographs the pole with a scale target or LiDAR/calibrated reference. Cloneable Field computes the calibrated pole line (referenceLine), camera intrinsics, lens distortion tables, pole height, and any field-marked attachments, writing them into measurement_data and uploading the raw photo + calibration sidecar (scalingData) to R2.
  2. Office tracing & refinement: In Cloneable Office, engineers can place or adjust attachments, wires, crossarms, and heights on the calibrated photo. Those measured annotations live in the annotations field ({ version: 1, annotations: [...] }) and can supersede an earlier field attachment via superseded_attachment_id.
  3. Units: Every stored height, distance from pole top, and midspan clearance is in meters (1 m = 3.28084 ft). Convert to feet/inches only at display time.
Documented-only vs measured poles: A pole with the collected_without_measurement sentinel (or only detail photos and no measurement_data payload) was visited in the field without taking a calibrated height measurement. Do not treat it as a 0 m pole height.

Top-level structure of measurement_data

Fetch a full pole record with GET /data-object/{id} and locate the field where name === "measurement_data".

Field-by-field reference

pole_information

attachments[]

Height precedence: Resolve an attachment’s height as height ?? manualHeight ?? calculatedHeight. Never read images[].imageHeight — that is the camera photo’s pixel height (e.g., 4032 px), not a pole height.

images[] (Calibrated overview photos)

midspan & capture metadata

Merging measurement_data with annotations (Cable Tracing)

If your organization uses Cable Tracing or the web map annotator, office-measured heights are written to the pole’s annotations field ({ version: 1, annotations: [...] }). To match what Cloneable Office exports:
  1. Start with measurement_data.attachments ?? measurement_data.pole_information?.pole_attachments ?? [].
  2. Collect every superseded_attachment_id from annotations.annotations[] and drop any legacy attachment with a matching id.
  3. Append every annotation in annotations.annotations[] that has a measure block (reading measure.height_m for the final height and measure.computed_height_m for the calculated height; measure.method === "manual" marks a manual override).

Tolerant parsing & write-safety rules

  • Double-encoded JSON: stored_value on the wire is always a string, and some iOS captures double-stringify measurement_data. Parse in a loop while typeof value === "string".
  • String-or-number fields: Numeric fields inside images[] and annotations[] can arrive as quoted strings (e.g., "3024"). Coerce with Number() / float() and check Number.isFinite.
  • Never schema-strip on write: If you update measurement_data via POST /data-object/{id}/fields, read-modify-write the full blob and preserve all unknown keys verbatim (LUTs, cameraIntrinsics, referenceLine, scalingData), or photo calibration and exports will break.
  • Don’t parse on bulk lists: Use GET /data-object-sync/filtered-data-objects to list/filter poles, then call GET /data-object/{id} when you need the full measurement_data payload.