Skip to content

Commit

Permalink
Fix highway exits
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried committed Dec 18, 2024
1 parent b7cc6fd commit e473061
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public final class WalkStep {
private final double angle;
private final boolean walkingBike;

private final String exit;
private final String highwayExit;
private final Entrance entrance;
private final ElevationProfile elevationProfile;
private final boolean stayOn;
Expand All @@ -57,7 +57,7 @@ public final class WalkStep {
AbsoluteDirection absoluteDirection,
I18NString directionText,
Set<StreetNote> streetNotes,
String exit,
String highwayExit,
Entrance entrance,
ElevationProfile elevationProfile,
boolean nameIsDerived,
Expand All @@ -78,7 +78,7 @@ public final class WalkStep {
this.angle = DoubleUtils.roundTo2Decimals(angle);
this.walkingBike = walkingBike;
this.area = area;
this.exit = exit;
this.highwayExit = highwayExit;
this.entrance = entrance;
this.elevationProfile = elevationProfile;
this.stayOn = stayOn;
Expand Down Expand Up @@ -131,7 +131,7 @@ public Optional<AbsoluteDirection> getAbsoluteDirection() {
* When exiting a highway or traffic circle, the exit name/number.
*/
public Optional<String> highwayExit() {
return exit.describeConstable();
return Optional.ofNullable(highwayExit);
}

/**
Expand Down

0 comments on commit e473061

Please sign in to comment.