Skip to content

Commit

Permalink
Use correct id
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried committed Feb 15, 2024
1 parent b088f61 commit 78452d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/org/opentripplanner/client/model/Stop.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.opentripplanner.client.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Optional;

public record Stop(String name, String gtfsId, Optional<String> code) {}
public record Stop(String name, @JsonProperty("gtfsId") String id, Optional<String> code) {}
1 change: 1 addition & 0 deletions src/test/java/org/opentripplanner/IntegrationTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public void plan() throws IOException {
var transitLeg = result.transitItineraries().get(0).transitLegs().get(0);
assertFalse(transitLeg.from().stop().isEmpty());
assertFalse(transitLeg.to().stop().isEmpty());
assertNotNull(transitLeg.from().stop().get().id());

assertEquals(List.of(), leg.fareProducts());
}
Expand Down

0 comments on commit 78452d5

Please sign in to comment.