From 8dca37558986afafeb17ef7e5d3376643451f952 Mon Sep 17 00:00:00 2001 From: vodie <45155869+vodie@users.noreply.github.com> Date: Sun, 17 May 2020 23:24:01 +0200 Subject: [PATCH] export Oruxmaps Navigation instructions --- .../main/java/btools/router/VoiceHint.java | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/brouter-core/src/main/java/btools/router/VoiceHint.java b/brouter-core/src/main/java/btools/router/VoiceHint.java index 1e15bac..c3ec1a4 100644 --- a/brouter-core/src/main/java/btools/router/VoiceHint.java +++ b/brouter-core/src/main/java/btools/router/VoiceHint.java @@ -158,6 +158,27 @@ public class VoiceHint default : throw new IllegalArgumentException( "unknown command: " + cmd ); } } + + public int getOruxAction() + { + switch ( cmd ) + { + case TU : return 1003; + case TSHL : return 1019; + case TL : return 1000; + case TSLL : return 1017; + case KL : return 1015; // ? + case C : return 1002; + case KR : return 1014; // ? + case TSLR : return 1016; + case TR : return 1001; + case TSHR : return 1018; + case TRU : return 1003; + case RNDB : return 1008 + roundaboutExit; + case RNLB : return 1008 + roundaboutExit; + default : throw new IllegalArgumentException( "unknown command: " + cmd ); + } + } public void calcCommand() {