-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/dev-2.x' into upgrade-protobuf
- Loading branch information
Showing
32 changed files
with
322 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
application/src/main/java/org/opentripplanner/transit/api/model/FilterValues.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
...in/java/org/opentripplanner/transit/api/request/FindRegularStopsByBoundingBoxRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package org.opentripplanner.transit.api.request; | ||
|
||
import javax.annotation.Nullable; | ||
import org.locationtech.jts.geom.Envelope; | ||
import org.opentripplanner.transit.model.site.RegularStop; | ||
|
||
/** | ||
* A request for {@link RegularStop}s within a bounding box. | ||
* <p/> | ||
* This request is used to retrieve {@link RegularStop}s that are within a provided bounding box and | ||
* match the other criteria. | ||
*/ | ||
public class FindRegularStopsByBoundingBoxRequest { | ||
|
||
private final Envelope envelope; | ||
|
||
@Nullable | ||
private final String feedId; | ||
|
||
private final boolean filterByInUse; | ||
|
||
FindRegularStopsByBoundingBoxRequest( | ||
Envelope envelope, | ||
@Nullable String feedId, | ||
boolean filterByInUse | ||
) { | ||
this.envelope = envelope; | ||
this.feedId = feedId; | ||
this.filterByInUse = filterByInUse; | ||
} | ||
|
||
public static FindRegularStopsByBoundingBoxRequestBuilder of(Envelope envelope) { | ||
return new FindRegularStopsByBoundingBoxRequestBuilder(envelope); | ||
} | ||
|
||
public Envelope envelope() { | ||
return envelope; | ||
} | ||
|
||
@Nullable | ||
public String feedId() { | ||
return feedId; | ||
} | ||
|
||
public boolean filterByInUse() { | ||
return filterByInUse; | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
.../org/opentripplanner/transit/api/request/FindRegularStopsByBoundingBoxRequestBuilder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package org.opentripplanner.transit.api.request; | ||
|
||
import javax.annotation.Nullable; | ||
import org.locationtech.jts.geom.Envelope; | ||
|
||
public class FindRegularStopsByBoundingBoxRequestBuilder { | ||
|
||
private final Envelope envelope; | ||
|
||
@Nullable | ||
private String feedId; | ||
|
||
private boolean filterByInUse = false; | ||
|
||
FindRegularStopsByBoundingBoxRequestBuilder(Envelope envelope) { | ||
this.envelope = envelope; | ||
} | ||
|
||
public FindRegularStopsByBoundingBoxRequestBuilder withFeedId(@Nullable String feedId) { | ||
this.feedId = feedId; | ||
return this; | ||
} | ||
|
||
public FindRegularStopsByBoundingBoxRequestBuilder filterByInUse(boolean filterByInUse) { | ||
this.filterByInUse = filterByInUse; | ||
return this; | ||
} | ||
|
||
public FindRegularStopsByBoundingBoxRequest build() { | ||
return new FindRegularStopsByBoundingBoxRequest(envelope, feedId, filterByInUse); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.