Skip to content

Commit

Permalink
Merge pull request #16 from baato/instructionresponse
Browse files Browse the repository at this point in the history
Instructionresponse
  • Loading branch information
nbnD authored May 13, 2024
2 parents edbebed + cb07707 commit 782868f
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -827,8 +827,12 @@ 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();
Expand Down Expand Up @@ -870,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", "");
Expand Down

0 comments on commit 782868f

Please sign in to comment.