add min/max speed to routingSpeed
This commit is contained in:
parent
934d0e8ab9
commit
2ffc78a0c2
1 changed files with 1 additions and 1 deletions
|
@ -396,7 +396,7 @@ public class GeneralRouter implements VehicleRouter {
|
|||
@Override
|
||||
public float defineRoutingSpeed(RouteDataObject road) {
|
||||
float spd = getObjContext(RouteDataObjectAttribute.ROAD_SPEED).evaluateFloat(road, defaultSpeed);
|
||||
return spd;
|
||||
return Math.max(Math.min(spd, maxSpeed), minSpeed);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue