Skip to content

Commit

Permalink
Add Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried committed Jul 1, 2024
1 parent ccf5be4 commit fb25066
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/main/java/org/opentripplanner/client/OtpApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,10 @@ public Stop stop(String gtfsId) throws IOException {
return deserialize(jsonNode, "/data/stop", Stop.class);
}

public List<Stop> stops(String nameMask) throws IOException {
/**
* Use full text search to query for stops.
*/
public List<Stop> stopSearch(String nameMask) throws IOException {
var stopQuery = GraphQLQueries.stops();
var formattedQuery = stopQuery.formatted(nameMask);

Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/opentripplanner/IntegrationTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ public void stop() throws IOException {

@Test
public void stops() throws IOException {
var result = client.stops("Oslo");
var result = client.stopSearch("Oslo");

LOG.info("Received stops");

Expand Down

0 comments on commit fb25066

Please sign in to comment.