Skip to content

Commit

Permalink
fix #15559
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 Oct 8, 2024
1 parent 4897f2f commit 0703e98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/generateParkingAreaRerouters.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ def _load_parking_areas_from_file(self, filename):
pa = self._parking_areas[child.attrib['id']]
pa['edge'] = lane.getEdge().getID()
pa['pos'] = sumolib.geomhelper.positionAtShapeOffset(lane.getShape(), endPos)
pa['capacity'] = (int(child.get('roadsideCapacity', 0)) + len(child.findall('space')))
pa['capacity'] = (int(child.get('roadsideCapacity', 1 if len(child.findall('space')) == 0 else 0)) +
len(child.findall('space')))

# ---------------------------------------------------------------------------------------- #
# Rerouter Generation #
Expand Down

0 comments on commit 0703e98

Please sign in to comment.