parent
51dc7fb1fb
commit
13a41bd9f8
2 changed files with 44 additions and 39 deletions
|
@ -29,6 +29,8 @@ interface IBRouterService {
|
||||||
// "pois" = lon,lat,name|... (optional)
|
// "pois" = lon,lat,name|... (optional)
|
||||||
// "extraParams" = Bundle key=value list for a profile setup (like "profile:")
|
// "extraParams" = Bundle key=value list for a profile setup (like "profile:")
|
||||||
// "timode" = turnInstructionMode [0=none, 1=auto-choose, 2=locus-style, 3=osmand-style, 4=comment-style, 5=gpsies-style, 6=orux-style] default 0
|
// "timode" = turnInstructionMode [0=none, 1=auto-choose, 2=locus-style, 3=osmand-style, 4=comment-style, 5=gpsies-style, 6=orux-style] default 0
|
||||||
|
// "heading" = angle (optional to give a route a start direction)
|
||||||
|
// "direction" = (deprecated) angle
|
||||||
|
|
||||||
// return null if all ok and no path given, the track if ok and path given, an error message if it was wrong
|
// return null if all ok and no path given, the track if ok and path given, an error message if it was wrong
|
||||||
// the resultas string when 'pathToFileResult' is null, this should be default when Android Q or later
|
// the resultas string when 'pathToFileResult' is null, this should be default when Android Q or later
|
||||||
|
|
|
@ -64,10 +64,13 @@ public class BRouterWorker {
|
||||||
rc.turnInstructionMode = params.getInt("timode");
|
rc.turnInstructionMode = params.getInt("timode");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (params.containsKey("direction")) {
|
if (params.containsKey("direction")) {
|
||||||
rc.startDirection = params.getInt("direction");
|
rc.startDirection = params.getInt("direction");
|
||||||
}
|
}
|
||||||
|
if (params.containsKey("heading")) {
|
||||||
|
rc.startDirection = params.getInt("heading");
|
||||||
|
rc.forceUseStartDirection = true;
|
||||||
|
}
|
||||||
if (params.containsKey("alternativeidx")) {
|
if (params.containsKey("alternativeidx")) {
|
||||||
rc.alternativeIdx = params.getInt("alternativeidx");
|
rc.alternativeIdx = params.getInt("alternativeidx");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue