Vehicle Locations Schema Flashcards

(40 cards)

1
Q

What is the primary key for the vehicle_locations table?

A

location_ping_id

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

What is the description of the vehicle_locations table?

A

Timestamped vehicle locations and speeds

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

What is the table type of vehicle_locations?

A

Event

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

What does the location_ping_id field represent?

A

Identifies the recorded vehicle location event

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

What are the constraints on the location_ping_id field?

A

Required: true, Unique: true

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

What does the service_date field represent?

A

Service date. References GTFS

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

What does the event_timestamp field represent?

A

Recorded event timestamp

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

Is the event_timestamp field required?

A

Yes

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

What does the trip_id_performed field represent?

A

Identifies the trip performed. If trips_performed table is used, this must be populated in order to link to it

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

What does the trip_id_scheduled field represent?

A

Identifies the scheduled trip

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
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
12
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
13
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
14
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
15
Q

What does the vehicle_id field represent?

A

Identifies a vehicle

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

Is the vehicle_id field required?

A

Yes

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

What does the device_id field represent?

A

Identifies the device that recorded the vehicle location

18
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

19
Q

What does the stop_id field represent?

A

Identifies the stop the vehicle is approaching or serving currently. References GTFS

20
Q

What does the current_status field represent?

A

Indicates the status of the vehicle in reference to a stop. References GTFS-Realtime

21
Q

What are the possible values for current_status?

A

Incoming at, Stopped at, In transit to

22
Q

What does the latitude field represent?

A

Degrees North, in the WGS-84 coordinate system. References GTFS-Realtime

23
Q

What are the constraints on the latitude field?

A

Minimum: -90, Maximum: 90

24
Q

What does the longitude field represent?

A

Degrees East, in the WGS-84 coordinate system. References GTFS-Realtime

25
What are the constraints on the longitude field?
Minimum: -180, Maximum: 180
26
What does the gps_quality field represent?
Indicates the quality of data and communication provided by the GPS
27
What are the possible values for gps_quality?
Excellent, Good, Poor
28
What does the heading field represent?
Heading, in degrees, clockwise from true north
29
What are the constraints on the heading field?
Minimum: 0, Maximum: 360
30
What does the speed field represent?
Momentary speed measured by the vehicle, in meters per second
31
What is the minimum value for speed?
0
32
What does the odometer field represent?
Odometer value, in meters
33
What is the minimum value for odometer?
0
34
What does the schedule_deviation field represent?
Indicates schedule adherence in seconds. A negative value represents an early vehicle
35
What does the headway_deviation field represent?
Indicates headway adherence in seconds. A negative value represents a shorter than scheduled headway
36
What does the trip_type field represent?
Indicates status of travel with regard to service
37
What are some possible values for trip_type?
In service, Deadhead, Layover, Pullout, Pullin
38
What does the schedule_relationship field represent?
Indicates the status of the stop
39
What are the possible values for schedule_relationship?
Scheduled, Skipped, Added, Missing
40
What foreign references does the vehicle_locations table have?
service_date+trip_id_performed → trips_performed, service_date+trip_id_performed+stop_sequence → stop_times, vehicle_id → vehicles, device_id → devices