Better describe culvert in fix for waterway-road intersection warnings (#10783)

This commit is contained in:
Mateusz Konieczny
2025-02-17 18:59:29 +01:00
committed by GitHub
parent 6f16060a78
commit 2ff01beba3
3 changed files with 12 additions and 2 deletions
+6 -1
View File
@@ -505,7 +505,12 @@ export function validationCrossingWays(context) {
// don't recommend adding tunnels under waterways since they're uncommon
var skipTunnelFix = otherFeatureType === 'waterway' && selectedFeatureType !== 'waterway';
if (allowsTunnel(selectedFeatureType) && !skipTunnelFix) {
fixes.push(makeAddBridgeOrTunnelFix('add_a_tunnel', 'temaki-tunnel', 'tunnel'));
if (selectedFeatureType === 'waterway') {
// naming piped waterway "tunnel" is a confusing osmism, culvert should be more clear
fixes.push(makeAddBridgeOrTunnelFix('add_a_culvert', 'temaki-waste', 'tunnel'));
} else {
fixes.push(makeAddBridgeOrTunnelFix('add_a_tunnel', 'temaki-tunnel', 'tunnel'));
}
}
}