Complete guide to measurement_data, how pole and attachment heights work, calibrated photos, and merging Cable Tracing annotations.
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
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.
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.
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".
Attaching utility or company name (e.g., "AT&T", "Spectrum").
height
number
Final attachment height above groundline in meters.
manualHeight
number
Manually entered or overridden height in meters (when isManualMeasurement is "true").
calculatedHeight
number
Photogrammetry-calculated height in meters.
distanceFromPoleTop
number
Distance measured down from the top of the pole in meters.
heading
number | null
Compass bearing / azimuth in degrees (0–360).
relatedSpans / relatedGuys
string[]
IDs of connected span or guy objects.
inventoryClass
object
Structured equipment class ({ name, subcategories }).
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)
Field
Type
Notes
image
string | { fileId }
File UUID in Cloneable Files. Pass this UUID to GET /file/{id}/download-url to fetch the image bytes.
imageWidth / imageHeight
number | string
Image pixel dimensions (may arrive as a quoted numeric string on older iOS captures).
referenceLine
object
Calibrated pole axis from groundline to pole top used to project clicks to metric heights.
cameraIntrinsics / lensDistortion
object
Focal length and forward/inverse distortion lookup tables (LUTs).
scalingData
string
File UUID of the calibration sidecar JSON stored in R2.
midspan & capture metadata
Field
Type
Notes
midspan.height
number
Lowest wire clearance above ground at midspan in meters.
high_accuracy
boolean | "true"
Whether the capture used high-accuracy calibration (may be boolean or string "true").
capture_mode
string
Capture workflow mode used in Cloneable Field.
pole_orientation
number
Pole/camera orientation angle in degrees.
tilt_bypassed
boolean
True if the fielder bypassed the device tilt warning during capture.
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:
Start with measurement_data.attachments ?? measurement_data.pole_information?.pole_attachments ?? [].
Collect every superseded_attachment_id from annotations.annotations[] and drop any legacy attachment with a matching id.
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.
import jsondef parse_measurement_data(stored_value): cur = stored_value for _ in range(3): if isinstance(cur, str): try: cur = json.loads(cur) except ValueError: return None return cur if isinstance(cur, dict) else Nonedef get_pole_summary(obj): raw = next((f.get("stored_value") for f in obj.get("fields", []) if f.get("name") == "measurement_data"), None) md = parse_measurement_data(raw) if not md or md.get("collected_without_measurement"): return None pole_info = md.get("pole_information") or {} raw_atts = md.get("attachments") or pole_info.get("pole_attachments") or [] return { "pole_height_m": pole_info.get("height"), "lean_deg": pole_info.get("lean_angle") or pole_info.get("leanAngle"), "photo_file_ids": [ i["image"] if isinstance(i.get("image"), str) else (i.get("image") or {}).get("fileId") for i in (md.get("images") or []) ], "attachments": [ { "id": a.get("id"), "classification": a.get("classification"), "owner": a.get("owner"), "height_m": a.get("height") or a.get("manualHeight") or a.get("calculatedHeight"), } for a in raw_atts ], }