Added primary road to implied oneways

This commit is contained in:
glax 2024-07-23 16:14:27 +02:00
parent 207df8dcd7
commit 5b5aee91af

View File

@ -20,7 +20,7 @@ public class Way(ulong id, Dictionary<string, string> tags, List<ulong> nodeIds)
"-1" => WayDirection.Backwards,
_ => WayDirection.Both
};
HighwayType[] impliedTypes = [HighwayType.motorway, HighwayType.motorway_link];
HighwayType[] impliedTypes = [HighwayType.motorway, HighwayType.motorway_link, HighwayType.primary, HighwayType.primary_link];
if (impliedTypes.Contains(GetHighwayType()))
return WayDirection.Forwards;
return WayDirection.Both;