Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
d005740da7
2 changed files with 5 additions and 2 deletions
|
@ -87,7 +87,8 @@ public class GeneralRouter implements VehicleRouter {
|
||||||
public enum GeneralRouterProfile {
|
public enum GeneralRouterProfile {
|
||||||
CAR,
|
CAR,
|
||||||
PEDESTRIAN,
|
PEDESTRIAN,
|
||||||
BICYCLE
|
BICYCLE,
|
||||||
|
BOAT
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -728,6 +728,8 @@ public class RouteProvider {
|
||||||
p = GeneralRouterProfile.PEDESTRIAN;
|
p = GeneralRouterProfile.PEDESTRIAN;
|
||||||
} else if(params.mode.isDerivedRoutingFrom(ApplicationMode.CAR)){
|
} else if(params.mode.isDerivedRoutingFrom(ApplicationMode.CAR)){
|
||||||
p = GeneralRouterProfile.CAR;
|
p = GeneralRouterProfile.CAR;
|
||||||
|
} else if (params.mode.isDerivedRoutingFrom(ApplicationMode.BOAT)) {
|
||||||
|
p = GeneralRouterProfile.BOAT;
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -830,7 +832,7 @@ public class RouteProvider {
|
||||||
}
|
}
|
||||||
|
|
||||||
private RouteCalculationResult applicationModeNotSupported(RouteCalculationParams params) {
|
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() {
|
private RouteCalculationResult interrupted() {
|
||||||
|
|
Loading…
Reference in a new issue