Skip to content

conflation_reason sometimes missing geom and tags fields #32

@wazolab

Description

@wazolab

Problem

conflation_reason in link metadata has two variants:

  • Complete (179 cases): { geom: { score, reason }, tags: { score, reason }, conflate: "..." } — matches expected format
  • Partial (33 cases): { conflate: "..." }geom and tags are missing entirely

The LoCha component type Reason declares geom and tags as required fields. The LoChaReason component iterates over all entries with Object.entries() so it doesn't crash, but the score/reason information is lost.

Example

/api/0.1/projects/espana_navarra_aquitania_emergency/changes_logs.json — 33 out of 212 links have the partial variant.

Partial variant:

"conflation_reason": {
  "conflate": "remeaning only after object"
}

Expected:

"conflation_reason": {
  "geom": { "score": 0.0, "reason": "same geom" },
  "tags": { "score": 0.0, "reason": "matched tags: highway=primary" },
  "conflate": "better score match"
}

Note

This supersedes issue #26 — the initial analysis was incorrect. The structure is not nested (conflation_reason.conflation_reason), it's simply that geom and tags are sometimes absent.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions