Skip to content

Commit

Permalink
add table to yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
tiffanychu90 committed Jan 16, 2025
1 parent 6c7c4cb commit 93aa83b
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions warehouse/models/mart/gtfs/_mart_gtfs_fcts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -705,15 +705,17 @@ models:
- &rt_position_speed
name: position_speed
description: '{{ doc("gtfs_position__speed") }}'
- name: location_timestamp
- &rt_location_timestamp
name: location_timestamp
description: Vehicle timestamp or header timestamp
- name: vehicle_trip_key
description: |
Composite of service_date, URL, vehicle_id, vehicle_label,
trip_id, and trip_start_time.
- name: next_location_key
description: Location key for the next vehicle timestamp.
- name: location
- &rt_location
name: location
description: GEOGPOINT created by the position latitute and longitude
- *trip_instance_key

Expand Down Expand Up @@ -2511,3 +2513,28 @@ models:
description: |
Total scheduled service hours that occurred for the route for this
month, `day_type`, and `time_of_day`.
- name: fct_vehicle_locations_dwell
description: |
Vehicle positions, grouped by location position. Uses fct_vehicle_locations and
calculates a first timestamp at location (location_timestamp) and
last timestamp at location (moving_timestamp).
Unique at the url/vehicle/trip/location_position level.
columns:
- name: key
description: |
Synthetic primary key constructed from `service_date`, `base64_url`,
`location_timestamp`, `vehicle_id`, `vehicle_label`,
`trip_id`, and `trip_start_time`.
- *gtfs_dataset_key
- *base64_url
- *gtfs_rt_name
- *gtfs_rt_schedule_dataset_key
- *trip_instance_key
- *rt_location_timestamp
- name: moving_timestamp
description: |
The last location_timestamp at this position.
- name: n_vp
description: |
Number of vehicle positions observed at this location.
- *rt_location

0 comments on commit 93aa83b

Please sign in to comment.