@@ -364,6 +364,7 @@ WITH stop_times_based AS NOT MATERIALIZED (
364364 from_stop_name,
365365 from_station_id,
366366 from_station_name,
367+ from_wheelchair_boarding,
367368
368369 from_stop_headsign,
369370 from_pickup_type,
@@ -396,7 +397,8 @@ WITH stop_times_based AS NOT MATERIALIZED (
396397 to_stop_id,
397398 to_stop_name,
398399 to_station_id,
399- to_station_name
400+ to_station_name,
401+ to_wheelchair_boarding
400402 FROM (
401403 SELECT
402404 trips.route_id,
@@ -413,6 +415,13 @@ WITH stop_times_based AS NOT MATERIALIZED (
413415 from_stops.stop_name as from_stop_name,
414416 from_stations.stop_id as from_station_id,
415417 from_stations.stop_name as from_station_name,
418+ -- todo: PR #47
419+ coalesce(
420+ nullif(from_stops.wheelchair_boarding, 'no_info_or_inherit'),
421+ nullif(from_stations.wheelchair_boarding, 'no_info_or_inherit'),
422+ 'no_info_or_inherit'
423+ ) AS from_wheelchair_boarding,
424+
416425 stop_times.stop_headsign as from_stop_headsign,
417426 stop_times.pickup_type as from_pickup_type,
418427 stop_times.departure_time as departure_time,
@@ -426,10 +435,17 @@ WITH stop_times_based AS NOT MATERIALIZED (
426435 to_stop_times.arrival_time as arrival_time,
427436 to_stop_times.drop_off_type as to_drop_off_type,
428437 to_stop_times.stop_headsign as to_stop_headsign,
438+
429439 to_stop_times.stop_id as to_stop_id,
430440 to_stops.stop_name as to_stop_name,
431441 to_stations.stop_id as to_station_id,
432- to_stations.stop_name as to_station_name
442+ to_stations.stop_name as to_station_name,
443+ -- todo: PR #47
444+ coalesce(
445+ nullif(to_stops.wheelchair_boarding, 'no_info_or_inherit'),
446+ nullif(to_stations.wheelchair_boarding, 'no_info_or_inherit'),
447+ 'no_info_or_inherit'
448+ ) AS to_wheelchair_boarding
433449 FROM "${ opt . schema } ".trips
434450 LEFT JOIN "${ opt . schema } ".routes ON trips.route_id = routes.route_id
435451 LEFT JOIN "${ opt . schema } ".agency ON (
@@ -501,6 +517,7 @@ SELECT
501517 from_stop_name,
502518 from_station_id,
503519 from_station_name,
520+ from_wheelchair_boarding,
504521
505522 from_stop_headsign,
506523 from_pickup_type,
@@ -532,6 +549,7 @@ SELECT
532549 to_stop_name,
533550 to_station_id,
534551 to_station_name,
552+ to_wheelchair_boarding,
535553
536554 frequencies_row,
537555 frequencies_it
0 commit comments