Skip to content

Commit

Permalink
ensuring walkability with foot="yes" fix #14124
Browse files Browse the repository at this point in the history
  • Loading branch information
behrisch committed Dec 1, 2023
1 parent 5f0720b commit 744f119
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/netimport/NIImporter_OpenStreetMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,11 @@ NIImporter_OpenStreetMap::insertEdge(Edge* e, int index, NBNode* from, NBNode* t
|| (myImportSidewalks && (sidewalkType & WAY_FORWARD) != 0 && defaultPermissions != SVC_PEDESTRIAN)) {
nbe->addSidewalk(sidewalkWidth * offsetFactor);
}
if (!addBackward && (e->myExtraAllowed & SVC_PEDESTRIAN) != 0 && (nbe->getPermissions(0) & SVC_PEDESTRIAN) == 0) {
// pedestrians are explicitly allowed (maybe through foot="yes") but dídn't get a sidewalk (maybe through sidewalk="no")
// since we do not have a backward edge, we need to make sure they can at least walk somewhere, see #14124
nbe->setPermissions(nbe->getPermissions(0) | SVC_PEDESTRIAN, 0);
}
nbe->updateParameters(e->getParametersMap());
nbe->setDistance(distanceStart);

Expand Down

0 comments on commit 744f119

Please sign in to comment.