Add implied types to IsPriorityRoad
This commit is contained in:
parent
334ff16253
commit
ceed833d37
@ -14,6 +14,9 @@ public class Way(ulong id, Dictionary<string, string> tags, List<ulong> nodeIds)
|
|||||||
string[] priorityValues = ["yes", "designated", "yes_unposted"];
|
string[] priorityValues = ["yes", "designated", "yes_unposted"];
|
||||||
if (Tags.TryGetValue("priority_road", out string? priorityValue))
|
if (Tags.TryGetValue("priority_road", out string? priorityValue))
|
||||||
return priorityValues.Contains(priorityValue);
|
return priorityValues.Contains(priorityValue);
|
||||||
|
HighwayType[] impliedTypes = [HighwayType.motorway, HighwayType.motorway_link, HighwayType.trunk, HighwayType.trunk_link];
|
||||||
|
if (impliedTypes.Contains(GetHighwayType()))
|
||||||
|
return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user