Include route relations without a network type (#68)

This commit is contained in:
Michael Barry
2022-02-05 06:21:39 -05:00
committed by GitHub
parent 73738dc4a9
commit 60c39b8d8a
2 changed files with 33 additions and 1 deletions

View File

@@ -288,7 +288,7 @@ public class Transportation implements
default -> (relation.hasTag("osmc:symbol") || relation.hasTag("colour")) ? 2 : 3;
};
if (networkType != null || rank < 3) {
if (network != null || rank < 3) {
return List.of(new RouteRelation(coalesce(ref, ""), network, networkType, (byte) rank, relation.id()));
}
}