Added navigation for the boat profile

This commit is contained in:
PaulStets 2017-12-16 17:06:29 +02:00
parent 83a899d6e3
commit 45003c897d
2 changed files with 5 additions and 2 deletions

View file

@ -87,7 +87,8 @@ public class GeneralRouter implements VehicleRouter {
public enum GeneralRouterProfile {
CAR,
PEDESTRIAN,
BICYCLE
BICYCLE,
BOAT
}

View file

@ -728,6 +728,8 @@ public class RouteProvider {
p = GeneralRouterProfile.PEDESTRIAN;
} else if(params.mode.isDerivedRoutingFrom(ApplicationMode.CAR)){
p = GeneralRouterProfile.CAR;
} else if (params.mode.isDerivedRoutingFrom(ApplicationMode.BOAT)) {
p = GeneralRouterProfile.BOAT;
} else {
return null;
}
@ -830,7 +832,7 @@ public class RouteProvider {
}
private RouteCalculationResult applicationModeNotSupported(RouteCalculationParams params) {
return new RouteCalculationResult("Application mode '"+ params.mode.toHumanStringCtx(params.ctx)+ "'is not supported.");
return new RouteCalculationResult("Application mode '"+ params.mode.toHumanStringCtx(params.ctx)+ "' is not supported.");
}
private RouteCalculationResult interrupted() {