Skip to content

Commit 782868f

Browse files
authored
Merge pull request #16 from baato/instructionresponse
Instructionresponse
2 parents edbebed + cb07707 commit 782868f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

baatolibrary/src/main/java/com/baato/baatolibrary/navigation/NavigateResponseConverterMapLibre.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ private static void putSingleBannerInstruction(InstructionResponse instruction,
807807
String bannerInstruction = bannerInstructionName;
808808
if (getTurnType(instruction, false).equals("arrive")) {
809809
bannerInstruction = "Destination";
810-
singleBannerInstruction.put("text","");
810+
singleBannerInstruction.put("text","Destination");
811811
} else {
812812
singleBannerInstruction.put("text", bannerInstruction);
813813
}
@@ -827,8 +827,12 @@ private static void putSingleBannerInstruction(InstructionResponse instruction,
827827

828828
singleBannerInstruction.put("type", getTurnType(instruction, false));
829829
String modifier = getModifier(instruction);
830-
if (modifier != null)
830+
if (modifier != null){
831+
831832
singleBannerInstruction.put("modifier", modifier);
833+
}else{
834+
singleBannerInstruction.put("modifier", "");
835+
}
832836

833837
if (instruction.getSign() == InstructionResponse.USE_ROUNDABOUT) {
834838
double turnAngle = instruction.getTurnAngle();
@@ -870,7 +874,6 @@ private static void putManeuver(InstructionResponse instruction, ObjectNode inst
870874

871875
String modifier = getModifier(instruction);
872876
if (modifier != null){
873-
874877
maneuver.put("modifier", modifier);
875878
}else{
876879
maneuver.put("modifier", "");

0 commit comments

Comments
 (0)