digitransit-ui/app/util/indoorUtils.js
2025-11-04 12:03:28 +02:00

8 lines
244 B
JavaScript

export function subwayTransferUsesSameStation(prevLeg, nextLeg) {
return (
prevLeg?.mode === 'SUBWAY' &&
nextLeg?.mode === 'SUBWAY' &&
prevLeg.to.stop.parentStation?.gtfsId ===
nextLeg.from.stop.parentStation?.gtfsId
);
}