Skip to content

Commit

Permalink
combine backward cyclists and buses ref #14419
Browse files Browse the repository at this point in the history
Signed-off-by: m-kro <m.barthauer@t-online.de>
  • Loading branch information
m-kro committed Apr 8, 2024
1 parent 32f3e7b commit 3b2941f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/netimport/NIImporter_OpenStreetMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -597,8 +597,10 @@ NIImporter_OpenStreetMap::insertEdge(Edge* e, int index, NBNode* from, NBNode* t
if (onewayBike == "false" || onewayBike == "no" || onewayBike == "0") {
e->myCyclewayType = e->myCyclewayType == WAY_UNKNOWN ? WAY_BACKWARD : (WayType)(e->myCyclewayType | WAY_BACKWARD);
}

const bool addBikeLane = bikeLaneWidth != NBEdge::UNSPECIFIED_WIDTH ||
(myImportBikeAccess && ((e->myCyclewayType & WAY_BOTH) != 0 || e->myExtraTags.count("segregated") != 0));
(myImportBikeAccess && (((e->myCyclewayType & WAY_BOTH) != 0 || e->myExtraTags.count("segregated") != 0) &&
!(e->myCyclewayType == WAY_BACKWARD && (e->myBuswayType & WAY_BOTH) != 0)));
if (addBikeLane && bikeLaneWidth == NBEdge::UNSPECIFIED_WIDTH) {
bikeLaneWidth = OptionsCont::getOptions().getFloat("default.bikelane-width");
}
Expand Down

0 comments on commit 3b2941f

Please sign in to comment.