mirror of
https://github.com/HSLdevcom/digitransit-ui
synced 2025-11-29 09:01:25 +01:00
8 lines
244 B
JavaScript
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
|
|
);
|
|
}
|