Stop Visits Schema Flashcards

(54 cards)

1
Q

What is the primary key for the stop_visits table?

A

service_date, trip_id_performed, trip_stop_sequence

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the description of the stop_visits table?

A

Summarized boarding, alighting, arrival, departure, and other events (kneel engaged, ramp deployed, etc.) by trip and stop for each service date

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the table type of stop_visits?

A

Summary

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does the service_date field represent?

A

Service date. References GTFS indirectly via calendars.txt and calendar_dates.txt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Is the service_date field required?

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does the trip_id_performed field represent?

A

Identifies the trip performed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Is the trip_id_performed field required?

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does the trip_stop_sequence field represent?

A

The actual order of stops visited within a performed trip

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Is the trip_stop_sequence field required?

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the minimum value for trip_stop_sequence?

A

1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does the scheduled_stop_sequence field represent?

A

Scheduled order of stops for a particular trip. References GTFS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the minimum value for scheduled_stop_sequence?

A

0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What does the pattern_id field represent?

A

Identifies the unique stop-path for a trip, may be distinct from GTFS shapes.shape_id

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What does the vehicle_id field represent?

A

Identifies the vehicle

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What does the dwell field represent?

A

Indicates the amount of time a vehicle spent stopped at a stop in seconds

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the minimum value for dwell?

A

0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What does the stop_id field represent?

A

Identifies the stop. References GTFS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What does the timepoint field represent?

A

Indicates if the stop should be used for evaluating schedule adherence, on-time performance, and other KPIs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What does the schedule_arrival_time field represent?

A

Scheduled timestamp at which the vehicle arrives at a stop. References GTFS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What does the schedule_departure_time field represent?

A

Scheduled timestamp at which the vehicle departs from a stop. References GTFS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

What does the actual_arrival_time field represent?

A

Timestamp at which the vehicle arrives at a stop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

What does the actual_departure_time field represent?

A

Timestamp at which the vehicle departs from a stop

23
Q

What does the distance field represent?

A

Observed distance in meters from the previous stop traveled by the vehicle

24
Q

What is the minimum value for distance?

25
What does the boarding_1 field represent?
Number of riders who entered through the vehicle's front doors (in vehicles with doors opening on only one side) or the vehicle's right doors (in vehicles with doors on both sides)
26
What is the minimum value for boarding_1?
0
27
What does the alighting_1 field represent?
Number of riders who exited through the vehicle's front doors (in vehicles with doors opening on only one side) or the vehicle's right doors (in vehicles with doors on both sides)
28
What is the minimum value for alighting_1?
0
29
What does the boarding_2 field represent?
Number of riders who entered through other doors, such as a bus's rear door when boarding_1 captures the front door, or a train's left doors when boarding_1 captures right doors
30
What is the minimum value for boarding_2?
0
31
What does the alighting_2 field represent?
Number of riders who exited through other doors, such as a bus's rear door when alighting_1 captures the front door, or a train's left doors when alighting_1 captures right doors
32
What is the minimum value for alighting_2?
0
33
What does the departure_load field represent?
Number of riders on the vehicle when departing the stop
34
What is the minimum value for departure_load?
0
35
What does the door_open field represent?
Timestamp at which the doors opened
36
What does the door_close field represent?
Timestamp at which the doors closed
37
What does the door_status field represent?
Indicates actions of the doors during the stop visit
38
What are the possible values for door_status?
Doors did not open, Front door opened and back doors remain closed, Back doors opened and front door remained closed, All doors opened, Other configuration
39
What does the ramp_deployed_time field represent?
Duration of time a ramp is deployed, in seconds
40
What is the minimum value for ramp_deployed_time?
0
41
What does the ramp_failure field represent?
Indicates if the ramp deployment failed at a stop
42
What does the kneel_deployed_time field represent?
Duration of time a kneel is deployed in seconds
43
What is the minimum value for kneel_deployed_time?
0
44
What does the lift_deployed_time field represent?
Duration of time in seconds of time a lift is deployed
45
What is the minimum value for lift_deployed_time?
0
46
What does the bike_rack_deployed field represent?
Indicates if the bike rack was deployed at a stop
47
What does the bike_load field represent?
Number of bikes on the vehicle when departing the stop
48
What is the minimum value for bike_load?
0
49
What does the revenue field represent?
Amount of revenue collected at the stop
50
What does the number_of_transactions field represent?
Number of fare transactions that occurred at a stop
51
What is the minimum value for number_of_transactions?
0
52
What does the schedule_relationship field represent?
Indicates the status of the stop
53
What are the possible values for schedule_relationship?
Scheduled, Skipped, Added, Missing
54
What foreign references does the stop_visits table have?
service_date+trip_id_performed → trips_performed, vehicle_id → vehicles