Ignore nodes on address lines for the mismatched geometry validation

This commit is contained in:
Quincy Morgan
2020-12-07 09:46:37 -05:00
parent a7b3985237
commit c43fac8d64
@@ -211,6 +211,9 @@ export function validationMismatchedGeometry() {
if (entity.type !== 'node' && entity.type !== 'way') return null;
// address lines are special so just ignore them
if (entity.type === 'node' && entity.isOnAddressLine(graph)) return null;
var sourceGeom = entity.geometry(graph);
var targetGeoms = entity.type === 'way' ? ['point', 'vertex'] : ['line', 'area'];