Vehicle Locations Schema Flashcards
(40 cards)
What is the primary key for the vehicle_locations table?
location_ping_id
What is the description of the vehicle_locations table?
Timestamped vehicle locations and speeds
What is the table type of vehicle_locations?
Event
What does the location_ping_id field represent?
Identifies the recorded vehicle location event
What are the constraints on the location_ping_id field?
Required: true, Unique: true
What does the service_date field represent?
Service date. References GTFS
What does the event_timestamp field represent?
Recorded event timestamp
Is the event_timestamp field required?
Yes
What does the trip_id_performed field represent?
Identifies the trip performed. If trips_performed table is used, this must be populated in order to link to it
What does the trip_id_scheduled field represent?
Identifies the scheduled trip
What does the trip_stop_sequence field represent?
The actual order of stops visited within a performed trip
What is the minimum value for trip_stop_sequence?
1
What does the scheduled_stop_sequence field represent?
Scheduled order of stops for a particular trip. References GTFS
What is the minimum value for scheduled_stop_sequence?
0
What does the vehicle_id field represent?
Identifies a vehicle
Is the vehicle_id field required?
Yes
What does the device_id field represent?
Identifies the device that recorded the vehicle location
What does the pattern_id field represent?
Identifies the unique stop-path for a trip, may be distinct from GTFS shapes.shape_id
What does the stop_id field represent?
Identifies the stop the vehicle is approaching or serving currently. References GTFS
What does the current_status field represent?
Indicates the status of the vehicle in reference to a stop. References GTFS-Realtime
What are the possible values for current_status?
Incoming at, Stopped at, In transit to
What does the latitude field represent?
Degrees North, in the WGS-84 coordinate system. References GTFS-Realtime
What are the constraints on the latitude field?
Minimum: -90, Maximum: 90
What does the longitude field represent?
Degrees East, in the WGS-84 coordinate system. References GTFS-Realtime