Skip to content

Commit

Permalink
Fixed #15439
Browse files Browse the repository at this point in the history
  • Loading branch information
palvarezlopez committed Sep 6, 2024
1 parent ef43c30 commit 01c259f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/netedit/frames/demand/GNEStopFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -487,11 +487,15 @@ GNEStopFrame::getStopParameter(const SumoXMLTag stopTag, const GNELane* lane, co
}
}
}
if (stopBaseObject->hasBoolAttribute(SUMO_ATTR_PARKING)) {
if (stopBaseObject->getBoolAttribute(SUMO_ATTR_PARKING)) {
// temporal, currently OPPORTUNISTIC don't supported
if (stopBaseObject->hasStringAttribute(SUMO_ATTR_PARKING)) {
if (stopBaseObject->getStringAttribute(SUMO_ATTR_PARKING) == "true") {
stop.parking = ParkingType::ONROAD;
stop.parametersSet |= STOP_PARKING_SET;
} else if (stopBaseObject->getStringAttribute(SUMO_ATTR_PARKING) == "opportunistic") {
stop.parking = ParkingType::OPPORTUNISTIC;
stop.parametersSet |= STOP_PARKING_SET;
} else {
stop.parking = ParkingType::OFFROAD;
}
}
if (stopBaseObject->hasTimeAttribute(SUMO_ATTR_JUMP)) {
Expand Down

0 comments on commit 01c259f

Please sign in to comment.