-
Notifications
You must be signed in to change notification settings - Fork 2
conflation_reason sometimes missing geom and tags fields #32
Copy link
Copy link
Open
Description
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: "..." }—geomandtagsare 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels