Module osm.model.conflict

Structured three-way OSM conflict classification.

The classifier describes base/local/remote facts. It does not merge objects, choose winners or contain editor UI policy.

Date

2026-11-08

Functions

NameDescription
classifyConflict(base, local, remote) Classify a Node base/local/remote triple.
classifyConflict(base, local, remote) Classify a Way base/local/remote triple.
classifyConflict(base, local, remote) Classify a Relation base/local/remote triple.

Structs

NameDescription
ConflictReport Structured conflict facts sufficient for external presentation/resolution.
ElementState Presence plus optional authoritative version for one typed element state.
SequenceEditSpan One conservative contiguous edit span relative to a base sequence.
TagConflict One deterministic tag-key comparison.

Enums

NameDescription
ConflictDisposition Overall relationship between base, local and remote state.
FieldChange Three-way relationship for one field/facet.
SequenceChange Relationship between ordered Way refs or Relation members.
TagChange Exact per-key tag relationship.

Aliases

NameTypeDescription
NodeState ElementState!(osm.model.owned.OwnedNode)
RelationState ElementState!(osm.model.owned.OwnedRelation)
WayState ElementState!(osm.model.owned.OwnedWay)