From 53cb72bdafc5fe983b02a2e0d6549494d1b9e26a Mon Sep 17 00:00:00 2001 From: Nabin Dhakal Date: Fri, 10 May 2024 14:02:59 +0545 Subject: [PATCH 1/2] modifier not null --- .../navigation/NavigateResponseConverterMapLibre.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/baatolibrary/src/main/java/com/baato/baatolibrary/navigation/NavigateResponseConverterMapLibre.java b/baatolibrary/src/main/java/com/baato/baatolibrary/navigation/NavigateResponseConverterMapLibre.java index 117bc86..bc07221 100644 --- a/baatolibrary/src/main/java/com/baato/baatolibrary/navigation/NavigateResponseConverterMapLibre.java +++ b/baatolibrary/src/main/java/com/baato/baatolibrary/navigation/NavigateResponseConverterMapLibre.java @@ -827,8 +827,13 @@ private static void putSingleBannerInstruction(InstructionResponse instruction, singleBannerInstruction.put("type", getTurnType(instruction, false)); String modifier = getModifier(instruction); - if (modifier != null) + if (modifier != null){ + singleBannerInstruction.put("modifier", modifier); + }else{ + singleBannerInstruction.put("modifier", ""); + + } if (instruction.getSign() == InstructionResponse.USE_ROUNDABOUT) { double turnAngle = instruction.getTurnAngle(); From cb07707b09add8216e6236bbc52147250f50cdd3 Mon Sep 17 00:00:00 2001 From: Nabin Dhakal Date: Mon, 13 May 2024 10:30:12 +0545 Subject: [PATCH 2/2] arrive text destination --- .../navigation/NavigateResponseConverterMapLibre.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/baatolibrary/src/main/java/com/baato/baatolibrary/navigation/NavigateResponseConverterMapLibre.java b/baatolibrary/src/main/java/com/baato/baatolibrary/navigation/NavigateResponseConverterMapLibre.java index bc07221..0ee2653 100644 --- a/baatolibrary/src/main/java/com/baato/baatolibrary/navigation/NavigateResponseConverterMapLibre.java +++ b/baatolibrary/src/main/java/com/baato/baatolibrary/navigation/NavigateResponseConverterMapLibre.java @@ -807,7 +807,7 @@ private static void putSingleBannerInstruction(InstructionResponse instruction, String bannerInstruction = bannerInstructionName; if (getTurnType(instruction, false).equals("arrive")) { bannerInstruction = "Destination"; - singleBannerInstruction.put("text",""); + singleBannerInstruction.put("text","Destination"); } else { singleBannerInstruction.put("text", bannerInstruction); } @@ -832,7 +832,6 @@ private static void putSingleBannerInstruction(InstructionResponse instruction, singleBannerInstruction.put("modifier", modifier); }else{ singleBannerInstruction.put("modifier", ""); - } if (instruction.getSign() == InstructionResponse.USE_ROUNDABOUT) { @@ -875,7 +874,6 @@ private static void putManeuver(InstructionResponse instruction, ObjectNode inst String modifier = getModifier(instruction); if (modifier != null){ - maneuver.put("modifier", modifier); }else{ maneuver.put("modifier", "");