From d82757c392ba863807bfc96968d2ff8f4c13ceb0 Mon Sep 17 00:00:00 2001 From: SilentSpike Date: Wed, 30 Jan 2019 20:27:13 +0000 Subject: [PATCH] Include node in turn restriction description Clarifies some cases where geometry could be unclear with previous message. --- data/core.yaml | 2 +- dist/locales/en.json | 2 +- modules/services/improveOSM.js | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/data/core.yaml b/data/core.yaml index 2bb4915b8..f61406ef3 100644 --- a/data/core.yaml +++ b/data/core.yaml @@ -686,7 +686,7 @@ en: description: '{num_trips} recorded trips in this area suggest there may be unmapped {geometry_type} here.' tr: title: Missing Turn Restriction - description: '{num_passed} of {num_trips} recorded trips (travelling {travel_direction}) make a turn from {from_way} to {to_way}. There may be a missing "{turn_restriction}" restriction.' + description: '{num_passed} of {num_trips} recorded trips (travelling {travel_direction}) make a turn from {from_way} to {to_way} at {junction}. There may be a missing "{turn_restriction}" restriction.' keepRight: title: KeepRight Error detail_title: Error diff --git a/dist/locales/en.json b/dist/locales/en.json index f4ef0c186..d3d73461f 100644 --- a/dist/locales/en.json +++ b/dist/locales/en.json @@ -832,7 +832,7 @@ }, "tr": { "title": "Missing Turn Restriction", - "description": "{num_passed} of {num_trips} recorded trips (travelling {travel_direction}) make a turn from {from_way} to {to_way}. There may be a missing \"{turn_restriction}\" restriction." + "description": "{num_passed} of {num_trips} recorded trips (travelling {travel_direction}) make a turn from {from_way} to {to_way} at {junction}. There may be a missing \"{turn_restriction}\" restriction." } } }, diff --git a/modules/services/improveOSM.js b/modules/services/improveOSM.js index 84164de6b..c253d79f7 100644 --- a/modules/services/improveOSM.js +++ b/modules/services/improveOSM.js @@ -292,7 +292,8 @@ export default { turn_restriction: feature.turnType.toLowerCase(), from_way: linkEntity('w' + from_way), to_way: linkEntity('w' + to_way), - travel_direction: dir_of_travel + travel_direction: dir_of_travel, + junction: linkErrorObject(t('QA.keepRight.error_parts.this_node')) }; _erCache.data[d.id] = d;