Configuration
Overview
Utility measurement workflows can be configured to match your specific utility environment and business requirements. Configuration ranges from basic setups using defaults to fully customized inventory lists and measurement parameters.
VerticalMeasurementConfiguration
The VerticalMeasurementConfiguration struct is used to configure both pole and midspan measurements:
public struct VerticalMeasurementConfiguration {
let type: UtilityMeasurementType // .pole or .midspan
let accuracy: MeasurementAccuracy // .standardAccuracy or .highAccuracy
let inventoryClasses: [InventoryClass]? // Selectable options for pole attachments
let wireClasses: [InventoryClass]? // Selectable options for wires
let guyWireOptions: [InventoryClass]? // Selectable options for guy attachment options
let ownerOptions: [String]? // Selectable options for equipment owner
let shouldCaptureAttachments: Bool? // Allow user to select attachments in the field
}Basic Configuration
The simplest way to start a utility workflow is with basic configuration using defaults:
// Basic pole measurement with default settings
let basicConfig = VerticalMeasurementConfiguration(
type: .pole,
accuracy: .standardAccuracy,
inventoryClasses: nil,
wireClasses: nil,
guyWireOptions: nil,
ownerOptions: nil,
shouldCaptureAttachments: nil // Default behavior (true)
)
let result = try await cloneable.startVerticalMeasurement(config: basicConfig)Advanced Configuration with Custom Inventory
For specialized utility environments, provide custom inventory options:
Complete Custom Configuration
Configuration for Different Use Cases
Quick Survey Configuration
For rapid surveys where attachments will be documented separately:
High-Accuracy Inspection Configuration
For detailed inspections requiring precise measurements:
Midspan-Specific Configuration
For span measurements focusing on conductors:
InventoryClass Structure
The InventoryClass structure allows for hierarchical categorization:
Example: Complex Transformer Classification
Accuracy Settings
Standard Accuracy
Suitable for most utility surveying and maintenance work
Faster measurement process
Potential for greater than 6 inches of error
Single-point measurement methodology
High Accuracy
Requires a physical reference stick
More detailed measurement process with reference stick
Β±2 inch accuracy for height measurements
Configuration Validation
The system validates configurations at runtime:
Best Practices
Start Simple: Begin with basic configurations and add complexity as needed
Test Configurations: Validate inventory options with field crews before deployment
Document Choices: Keep records of which configurations work best for different scenarios
Validate Required Fields: Ensure required subcategories have appropriate options
Last updated

