Skip to content

Commit

Permalink
Rename missing method
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried committed Dec 13, 2024
1 parent fbd1ff1 commit 4c6db7f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public WalkStepBuilder withStartLocation(WgsCoordinate startLocation) {
return this;
}

public WalkStepBuilder withBogusName(boolean nameIsDerived) {
public WalkStepBuilder withNameIsDerived(boolean nameIsDerived) {
this.nameIsDerived = nameIsDerived;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ private void createAndSaveStep(
addStep(
createWalkStep(forwardState, backState)
.withDirectionText(name)
.withBogusName(false)
.withNameIsDerived(false)
.withDirections(lastAngle, DirectionUtils.getFirstAngle(edge.getGeometry()), false)
.withRelativeDirection(direction)
.addDistance(edge.getDistanceMeters())
Expand All @@ -543,7 +543,7 @@ private WalkStepBuilder createWalkStep(State forwardState, State backState) {
.builder()
.withDirectionText(en.getName())
.withStartLocation(new WgsCoordinate(backState.getVertex().getCoordinate()))
.withBogusName(en.nameIsDerived())
.withNameIsDerived(en.nameIsDerived())
.withAngle(DirectionUtils.getFirstAngle(forwardState.getBackEdge().getGeometry()))
.withWalkingBike(forwardState.isBackWalkingBike())
.withArea(forwardState.getBackEdge() instanceof AreaEdge)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import static org.opentripplanner.street.model.edge.StreetEdge.BACK_FLAG_INDEX;
import static org.opentripplanner.street.model.edge.StreetEdge.BICYCLE_NOTHRUTRAFFIC;
import static org.opentripplanner.street.model.edge.StreetEdge.CLASS_LINK;
import static org.opentripplanner.street.model.edge.StreetEdge.NAME_IS_DERIVED_FLAG_INDEX;
import static org.opentripplanner.street.model.edge.StreetEdge.MOTOR_VEHICLE_NOTHRUTRAFFIC;
import static org.opentripplanner.street.model.edge.StreetEdge.NAME_IS_DERIVED_FLAG_INDEX;
import static org.opentripplanner.street.model.edge.StreetEdge.ROUNDABOUT_FLAG_INDEX;
import static org.opentripplanner.street.model.edge.StreetEdge.SLOPEOVERRIDE_FLAG_INDEX;
import static org.opentripplanner.street.model.edge.StreetEdge.STAIRS_FLAG_INDEX;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public void testRelativeDirection() {
WalkStepBuilder builder = new WalkStepBuilder()
.withDirectionText(new NonLocalizedString("Any"))
.withStartLocation(new WgsCoordinate(3.0, 4.0))
.withBogusName(false)
.withNameIsDerived(false)
.withAngle(0.0)
.withWalkingBike(false)
.withArea(false);
Expand Down

0 comments on commit 4c6db7f

Please sign in to comment.