Remove the unsupported shuttleStopNearbyDegreeDelta option from InterchangeSystemBuilderArguments

This commit is contained in:
2025-11-22 18:21:22 -08:00
parent ee10daf957
commit 8d2dd60cfb
5 changed files with 14 additions and 28 deletions

View File

@@ -54,14 +54,6 @@ export interface InterchangeSystemBuilderArguments {
* at a stop, in latitude/longitude degrees.
*/
shuttleStopArrivalDegreeDelta: number;
/**
* The size of the threshold to detect when a shuttle is "near"
* a stop, in latitude/longitude degrees. To determine this value,
* find the distance at which the shuttle would normally take
* ~1 minute to reach the next stop.
*/
shuttleStopNearbyDegreeDelta: number;
}
export class InterchangeSystem {
@@ -116,7 +108,6 @@ export class InterchangeSystem {
const shuttleRepository = new RedisShuttleRepository(
createRedisClientForRepository(),
args.shuttleStopArrivalDegreeDelta,
args.shuttleStopNearbyDegreeDelta,
);
await shuttleRepository.connect();
@@ -268,7 +259,6 @@ export class InterchangeSystem {
private static buildInMemoryShuttleLoaderAndRepositories(args: InterchangeSystemBuilderArguments) {
const shuttleRepository = new UnoptimizedInMemoryShuttleRepository(
args.shuttleStopArrivalDegreeDelta,
args.shuttleStopNearbyDegreeDelta,
);
let etaRepository: BaseInMemoryETARepository;