Merge pull request #7129 from vodie/patch-1

modes for BRouter
This commit is contained in:
Alexey 2019-06-30 11:23:54 +03:00 committed by GitHub
commit 8c7237f45c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1145,9 +1145,9 @@ public class RouteProvider {
}
lats[index] = params.end.getLatitude();
lons[index] = params.end.getLongitude();
if (ApplicationMode.PEDESTRIAN == params.mode) {
if (params.mode.isDerivedRoutingFrom(ApplicationMode.PEDESTRIAN)) {
mode = "foot"; //$NON-NLS-1$
} else if (ApplicationMode.BICYCLE == params.mode) {
} else if (params.mode.isDerivedRoutingFrom(ApplicationMode.BICYCLE)) {
mode = "bicycle"; //$NON-NLS-1$
} else {
mode = "motorcar"; //$NON-NLS-1$