mirror of
https://github.com/FoggedLens/iD.git
synced 2026-04-01 09:40:38 +02:00
Don't flag highways connected to amenity=parking_entrance nodes as disconnected
Don't flag oneways with entrance endpoints as impossible
This commit is contained in:
@@ -122,6 +122,7 @@ export function validationDisconnectedWay() {
|
||||
|
||||
// entrances are considered connected
|
||||
if (vertex.tags.entrance && vertex.tags.entrance !== 'no') return false;
|
||||
if (vertex.tags.amenity === 'parking_entrance') return false;
|
||||
|
||||
return !parents.some(function(parentWay) {
|
||||
if (parentWay === way) return false; // ignore the way we're testing
|
||||
|
||||
@@ -65,6 +65,12 @@ export function validationImpossibleOneway() {
|
||||
|
||||
var node = context.hasEntity(nodeID);
|
||||
|
||||
if (wayType === 'highway') {
|
||||
// entrances are considered connected
|
||||
if (node.tags.entrance && node.tags.entrance !== 'no') return [];
|
||||
if (node.tags.amenity === 'parking_entrance') return [];
|
||||
}
|
||||
|
||||
// ignore if this node or its tile are unloaded
|
||||
if (!node || !osm.isDataLoaded(node.loc)) return [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user