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 {
|
||||
CAR,
|
||||
PEDESTRIAN,
|
||||
BICYCLE
|
||||
BICYCLE,
|
||||
BOAT
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue