Skip to content

Commit 7afaba1

Browse files
committed
refactor: Correct spelling of 'Realtime' in IncludeStopsUsedRealTimeInTransfers
1 parent bbadd27 commit 7afaba1

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

application/src/main/java/org/opentripplanner/framework/application/OTPFeature.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public enum OTPFeature {
4343
),
4444
FloatingBike(true, false, "Enable floating bike routing."),
4545
GtfsGraphQlApi(true, false, "Enable the [GTFS GraphQL API](apis/GTFS-GraphQL-API.md)."),
46-
IncludeStopsUsedRealtimeInTransfers(
46+
IncludeStopsUsedRealTimeInTransfers(
4747
false,
4848
false,
4949
"""

application/src/main/java/org/opentripplanner/graph_builder/module/transfer/filter/PatternNearbyStopFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,6 @@ private List<FeedScopedId> findPatternsForStop(RegularStop stop, boolean reverse
8282
}
8383

8484
private boolean includeStopUsedRealtime(RegularStop stop) {
85-
return OTPFeature.IncludeStopsUsedRealtimeInTransfers.isOn() && stop.isSometimesUsedRealtime();
85+
return OTPFeature.IncludeStopsUsedRealTimeInTransfers.isOn() && stop.isSometimesUsedRealtime();
8686
}
8787
}

application/src/main/java/org/opentripplanner/gtfs/mapping/StopMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ private RegularStop doMap(org.onebusaway.gtfs.model.Stop gtfsStop) {
110110
* when it does not have any trips/routes visiting it.
111111
*/
112112
private static boolean mapSometimesUsedRealtime(TransitMode mode, Stop gtfsStop) {
113-
if (OTPFeature.IncludeStopsUsedRealtimeInTransfers.isOn()) {
113+
if (OTPFeature.IncludeStopsUsedRealTimeInTransfers.isOn()) {
114114
if (mode == TransitMode.RAIL) {
115115
return true;
116116
}

application/src/main/java/org/opentripplanner/netex/mapping/QuayMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ private RegularStop map(
7979
String subMode = transitMode.subMode();
8080
boolean sometimesUsedRealtime = false;
8181

82-
if (OTPFeature.IncludeStopsUsedRealtimeInTransfers.isOn()) {
82+
if (OTPFeature.IncludeStopsUsedRealTimeInTransfers.isOn()) {
8383
if (transitMode.mainMode() == RAIL) {
8484
sometimesUsedRealtime = true;
8585
}

application/src/test/java/org/opentripplanner/graph_builder/module/transfer/DirectTransferGeneratorTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public void testStreetTransfersWithPatterns() {
197197

198198
@Test
199199
public void testStreetTransfersWithPatternsIncludeRealTimeUsedStops() {
200-
OTPFeature.IncludeStopsUsedRealtimeInTransfers.testOn(() -> {
200+
OTPFeature.IncludeStopsUsedRealTimeInTransfers.testOn(() -> {
201201
var repository = DirectTransferGeneratorTestData.of()
202202
.withPatterns()
203203
.withStreetGraph()
@@ -250,7 +250,7 @@ public void testStreetTransfersWithMultipleRequestsWithPatterns() {
250250

251251
@Test
252252
public void testStreetTransfersWithStationWithTransfersNotAllowed() {
253-
OTPFeature.IncludeStopsUsedRealtimeInTransfers.testOn(() -> {
253+
OTPFeature.IncludeStopsUsedRealTimeInTransfers.testOn(() -> {
254254
var repository = DirectTransferGeneratorTestData.of()
255255
.withPatterns()
256256
.withStreetGraph()
@@ -279,7 +279,7 @@ public void testStreetTransfersWithStationWithTransfersNotAllowed() {
279279

280280
@Test
281281
public void testBikeRequestWithBikesAllowedTransfersWithIncludeEmptyRailStopsInTransfersOn() {
282-
OTPFeature.IncludeStopsUsedRealtimeInTransfers.testOn(() -> {
282+
OTPFeature.IncludeStopsUsedRealTimeInTransfers.testOn(() -> {
283283
var repository = DirectTransferGeneratorTestData.of()
284284
.withPatterns()
285285
.withStreetGraph()

application/src/test/java/org/opentripplanner/gtfs/mapping/StopMapperTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ void testMapWithPlatformCode() {
197197

198198
@Test
199199
void testMapSometimesUsedRealtimeForRailWithFeatureOn() {
200-
OTPFeature.IncludeStopsUsedRealtimeInTransfers.testOn(() -> {
200+
OTPFeature.IncludeStopsUsedRealTimeInTransfers.testOn(() -> {
201201
Stop input = createBasicStop();
202202
input.setVehicleType(VEHICLE_TYPE_RAIL);
203203

@@ -209,7 +209,7 @@ void testMapSometimesUsedRealtimeForRailWithFeatureOn() {
209209

210210
@Test
211211
void testMapSometimesUsedRealtimeForRailReplacementBusWithFeatureOn() {
212-
OTPFeature.IncludeStopsUsedRealtimeInTransfers.testOn(() -> {
212+
OTPFeature.IncludeStopsUsedRealTimeInTransfers.testOn(() -> {
213213
Stop input = createBasicStop();
214214
input.setVehicleType(VEHICLE_TYPE_RAIL_REPLACEMENT_BUS);
215215

@@ -221,7 +221,7 @@ void testMapSometimesUsedRealtimeForRailReplacementBusWithFeatureOn() {
221221

222222
@Test
223223
void testMapSometimesUsedRealtimeForBusWithFeatureOn() {
224-
OTPFeature.IncludeStopsUsedRealtimeInTransfers.testOn(() -> {
224+
OTPFeature.IncludeStopsUsedRealTimeInTransfers.testOn(() -> {
225225
Stop input = createBasicStop();
226226
input.setVehicleType(VEHICLE_TYPE_BUS);
227227

@@ -233,7 +233,7 @@ void testMapSometimesUsedRealtimeForBusWithFeatureOn() {
233233

234234
@Test
235235
void testMapSometimesUsedRealtimeWithFeatureOff() {
236-
OTPFeature.IncludeStopsUsedRealtimeInTransfers.testOff(() -> {
236+
OTPFeature.IncludeStopsUsedRealTimeInTransfers.testOff(() -> {
237237
Stop input = createBasicStop();
238238
input.setVehicleType(VEHICLE_TYPE_RAIL);
239239

doc/user/Configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ Here is a list of all features which can be toggled on/off and their default val
232232
| `ExtraTransferLegOnSameStop` | Should there be a transfer leg when transferring on the very same stop. Note that for in-seat/interlined transfers no transfer leg will be generated. | | |
233233
| `FloatingBike` | Enable floating bike routing. | ✓️ | |
234234
| `GtfsGraphQlApi` | Enable the [GTFS GraphQL API](apis/GTFS-GraphQL-API.md). | ✓️ | |
235-
| `IncludeStopsUsedRealtimeInTransfers` | When generating transfers, stops without any patterns are excluded to improve performance if `ConsiderPatternsForDirectTransfers` is enabled. However, some stops are only used by trips changed or added by real-time updates. Since transfer generation happens before real-time updates are applied, OTP cannot know which stops will be needed. Instead, OTP will attempt to identify stops likely to be used by real-time updates at import time. Common cases include rail stops (which often have late platform assignments) and stops reserved for replacement services (which can be detected in NeTEx by examining the stop sub-mode). This feature has no effect if `ConsiderPatternsForDirectTransfers` is disabled. This feature is only supported for NeTEx feeds, not for GTFS feeds. | | |
235+
| `IncludeStopsUsedRealTimeInTransfers` | When generating transfers, stops without any patterns are excluded to improve performance if `ConsiderPatternsForDirectTransfers` is enabled. However, some stops are only used by trips changed or added by real-time updates. Since transfer generation happens before real-time updates are applied, OTP cannot know which stops will be needed. Instead, OTP will attempt to identify stops likely to be used by real-time updates at import time. Common cases include rail stops (which often have late platform assignments) and stops reserved for replacement services (which can be detected in NeTEx by examining the stop sub-mode). This feature has no effect if `ConsiderPatternsForDirectTransfers` is disabled. This feature is only supported for NeTEx feeds, not for GTFS feeds. | | |
236236
| `MinimumTransferTimeIsDefinitive` | If the minimum transfer time is a lower bound (default) or the definitive time for the transfer. Set this to `true` if you want to set a transfer time lower than what OTP derives from OSM data. | | |
237237
| `OnDemandRaptorTransfer` | Calculate transfers only when accessed by Raptor, instead of calculating and caching all transfers for the whole graph, for runtime requests which are not pre-cached in `transferCacheRequests` in router-config.json. This may help performance when doing local journey planning in a large graph. Requests which are specified in `transferCacheRequests` in router-config.json are not affected and are always pre-cached for the whole graph. | | |
238238
| `OptimizeTransfers` | OTP will inspect all itineraries found and optimize where (which stops) the transfer will happen. Waiting time, priority and guaranteed transfers are taken into account. | ✓️ | |

0 commit comments

Comments
 (0)