Skip to content

Commit

Permalink
feat(dim_monthly_ntd_ridership_with_adjustments): added service_mode
Browse files Browse the repository at this point in the history
  • Loading branch information
V authored and vevetron committed Jun 26, 2024
1 parent eb0c102 commit 892d3d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions warehouse/models/mart/ntd/_mart_ntd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ models:
description: The mode of service operated under the contract. A contractor can
operate more than one mode/TOS under a contract (only one B-30 for
that contractor).
- name: service_type
description: A summarization of modes into Fixed Route and Demand Response
- name: tos
description: The type of service operated under the contract.
- name: time_period
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ select
agency,
mode_type_of_service_status,
mode,
CASE
WHEN mode IN ('AR', 'CC', 'CR', 'HR', 'YR', 'IP', 'LR', 'MG', 'SR', 'TR', 'MB', 'RB', 'CB', 'TB', 'FB', 'IP') THEN 'Fixed Route'
WHEN mode IN ('DR', 'DT', 'VP', 'JT', 'PB') THEN 'Demand Response'
ELSE 'Unknown' -- mode is null sometimes
END AS service_type,
_3_mode,
tos,
legacy_ntd_id,
Expand Down

0 comments on commit 892d3d9

Please sign in to comment.