Class: OnebusawaySDK::Models::VehiclesForAgencyListResponse::Data::List::TripStatus
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OnebusawaySDK::Models::VehiclesForAgencyListResponse::Data::List::TripStatus
- Defined in:
- lib/onebusaway_sdk/models/vehicles_for_agency_list_response.rb
Overview
Defined Under Namespace
Classes: LastKnownLocation, Position
Instance Attribute Summary collapse
-
#active_trip_id ⇒ String
Trip ID of the trip the vehicle is actively serving.
-
#block_trip_sequence ⇒ Integer
Index of the active trip into the sequence of trips for the active block.
-
#closest_stop ⇒ String
ID of the closest stop to the current location of the transit vehicle.
-
#closest_stop_time_offset ⇒ Integer?
Time offset from the closest stop to the current position of the transit vehicle (in seconds).
-
#distance_along_trip ⇒ Float
Distance, in meters, the transit vehicle has progressed along the active trip.
-
#frequency ⇒ String?
Information about frequency-based scheduling, if applicable to the trip.
-
#last_known_distance_along_trip ⇒ Float
Last known distance along the trip received in real-time from the transit vehicle.
-
#last_known_location ⇒ OnebusawaySDK::Models::VehiclesForAgencyListResponse::Data::List::TripStatus::LastKnownLocation?
Last known location of the transit vehicle.
-
#last_known_orientation ⇒ Float?
Last known orientation value received in real-time from the transit vehicle.
-
#last_location_update_time ⇒ Integer
Timestamp of the last known real-time location update from the transit vehicle.
-
#last_update_time ⇒ Integer
Timestamp of the last known real-time update from the transit vehicle.
-
#next_stop ⇒ String?
ID of the next stop the transit vehicle is scheduled to arrive at.
-
#next_stop_time_offset ⇒ Integer?
Time offset from the next stop to the current position of the transit vehicle (in seconds).
-
#occupancy_capacity ⇒ Integer
Capacity of the transit vehicle in terms of occupancy.
-
#occupancy_count ⇒ Integer
Current count of occupants in the transit vehicle.
-
#occupancy_status ⇒ String
Current occupancy status of the transit vehicle.
-
#orientation ⇒ Float?
Orientation of the transit vehicle, represented as an angle in degrees.
-
#phase ⇒ String
Current journey phase of the trip.
-
#position ⇒ OnebusawaySDK::Models::VehiclesForAgencyListResponse::Data::List::TripStatus::Position?
Current position of the transit vehicle.
-
#predicted ⇒ Boolean
Indicates if real-time arrival info is available for this trip.
-
#schedule_deviation ⇒ Integer
Deviation from the schedule in seconds (positive for late, negative for early).
-
#scheduled_distance_along_trip ⇒ Float?
Distance, in meters, the transit vehicle is scheduled to have progressed along the active trip.
-
#service_date ⇒ Integer
Time, in milliseconds since the Unix epoch, of midnight for the start of the service date for the trip.
-
#situation_ids ⇒ Array<String>?
References to situation elements (if any) applicable to this trip.
-
#status ⇒ String
Current status modifiers for the trip.
-
#total_distance_along_trip ⇒ Float
Total length of the trip, in meters.
-
#vehicle_id ⇒ String?
ID of the transit vehicle currently serving the trip.
Instance Method Summary collapse
-
#initialize(lat: nil, lon: nil) ⇒ Object
constructor
Last known location of the transit vehicle.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(lat: nil, lon: nil) ⇒ Object
Last known location of the transit vehicle.
|
|
# File 'lib/onebusaway_sdk/models/vehicles_for_agency_list_response.rb', line 297
|
Instance Attribute Details
#active_trip_id ⇒ String
Trip ID of the trip the vehicle is actively serving.
131 |
# File 'lib/onebusaway_sdk/models/vehicles_for_agency_list_response.rb', line 131 required :active_trip_id, String, api_name: :activeTripId |
#block_trip_sequence ⇒ Integer
Index of the active trip into the sequence of trips for the active block.
137 |
# File 'lib/onebusaway_sdk/models/vehicles_for_agency_list_response.rb', line 137 required :block_trip_sequence, Integer, api_name: :blockTripSequence |
#closest_stop ⇒ String
ID of the closest stop to the current location of the transit vehicle.
143 |
# File 'lib/onebusaway_sdk/models/vehicles_for_agency_list_response.rb', line 143 required :closest_stop, String, api_name: :closestStop |
#closest_stop_time_offset ⇒ Integer?
Time offset from the closest stop to the current position of the transit vehicle (in seconds).
230 |
# File 'lib/onebusaway_sdk/models/vehicles_for_agency_list_response.rb', line 230 optional :closest_stop_time_offset, Integer, api_name: :closestStopTimeOffset |
#distance_along_trip ⇒ Float
Distance, in meters, the transit vehicle has progressed along the active trip.
149 |
# File 'lib/onebusaway_sdk/models/vehicles_for_agency_list_response.rb', line 149 required :distance_along_trip, Float, api_name: :distanceAlongTrip |
#frequency ⇒ String?
Information about frequency-based scheduling, if applicable to the trip.
236 |
# File 'lib/onebusaway_sdk/models/vehicles_for_agency_list_response.rb', line 236 optional :frequency, String |
#last_known_distance_along_trip ⇒ Float
Last known distance along the trip received in real-time from the transit vehicle.
156 |
# File 'lib/onebusaway_sdk/models/vehicles_for_agency_list_response.rb', line 156 required :last_known_distance_along_trip, Float, api_name: :lastKnownDistanceAlongTrip |
#last_known_location ⇒ OnebusawaySDK::Models::VehiclesForAgencyListResponse::Data::List::TripStatus::LastKnownLocation?
Last known location of the transit vehicle.
242 243 244 |
# File 'lib/onebusaway_sdk/models/vehicles_for_agency_list_response.rb', line 242 optional :last_known_location, -> { OnebusawaySDK::Models::VehiclesForAgencyListResponse::Data::List::TripStatus::LastKnownLocation }, api_name: :lastKnownLocation |
#last_known_orientation ⇒ Float?
Last known orientation value received in real-time from the transit vehicle.
250 |
# File 'lib/onebusaway_sdk/models/vehicles_for_agency_list_response.rb', line 250 optional :last_known_orientation, Float, api_name: :lastKnownOrientation |
#last_location_update_time ⇒ Integer
Timestamp of the last known real-time location update from the transit vehicle.
162 |
# File 'lib/onebusaway_sdk/models/vehicles_for_agency_list_response.rb', line 162 required :last_location_update_time, Integer, api_name: :lastLocationUpdateTime |
#last_update_time ⇒ Integer
Timestamp of the last known real-time update from the transit vehicle.
168 |
# File 'lib/onebusaway_sdk/models/vehicles_for_agency_list_response.rb', line 168 required :last_update_time, Integer, api_name: :lastUpdateTime |
#next_stop ⇒ String?
ID of the next stop the transit vehicle is scheduled to arrive at.
256 |
# File 'lib/onebusaway_sdk/models/vehicles_for_agency_list_response.rb', line 256 optional :next_stop, String, api_name: :nextStop |
#next_stop_time_offset ⇒ Integer?
Time offset from the next stop to the current position of the transit vehicle (in seconds).
263 |
# File 'lib/onebusaway_sdk/models/vehicles_for_agency_list_response.rb', line 263 optional :next_stop_time_offset, Integer, api_name: :nextStopTimeOffset |
#occupancy_capacity ⇒ Integer
Capacity of the transit vehicle in terms of occupancy.
174 |
# File 'lib/onebusaway_sdk/models/vehicles_for_agency_list_response.rb', line 174 required :occupancy_capacity, Integer, api_name: :occupancyCapacity |
#occupancy_count ⇒ Integer
Current count of occupants in the transit vehicle.
180 |
# File 'lib/onebusaway_sdk/models/vehicles_for_agency_list_response.rb', line 180 required :occupancy_count, Integer, api_name: :occupancyCount |
#occupancy_status ⇒ String
Current occupancy status of the transit vehicle.
186 |
# File 'lib/onebusaway_sdk/models/vehicles_for_agency_list_response.rb', line 186 required :occupancy_status, String, api_name: :occupancyStatus |
#orientation ⇒ Float?
Orientation of the transit vehicle, represented as an angle in degrees.
269 |
# File 'lib/onebusaway_sdk/models/vehicles_for_agency_list_response.rb', line 269 optional :orientation, Float |
#phase ⇒ String
Current journey phase of the trip.
192 |
# File 'lib/onebusaway_sdk/models/vehicles_for_agency_list_response.rb', line 192 required :phase, String |
#position ⇒ OnebusawaySDK::Models::VehiclesForAgencyListResponse::Data::List::TripStatus::Position?
Current position of the transit vehicle.
275 276 |
# File 'lib/onebusaway_sdk/models/vehicles_for_agency_list_response.rb', line 275 optional :position, -> { OnebusawaySDK::Models::VehiclesForAgencyListResponse::Data::List::TripStatus::Position } |
#predicted ⇒ Boolean
Indicates if real-time arrival info is available for this trip.
198 |
# File 'lib/onebusaway_sdk/models/vehicles_for_agency_list_response.rb', line 198 required :predicted, OnebusawaySDK::Internal::Type::Boolean |
#schedule_deviation ⇒ Integer
Deviation from the schedule in seconds (positive for late, negative for early).
204 |
# File 'lib/onebusaway_sdk/models/vehicles_for_agency_list_response.rb', line 204 required :schedule_deviation, Integer, api_name: :scheduleDeviation |
#scheduled_distance_along_trip ⇒ Float?
Distance, in meters, the transit vehicle is scheduled to have progressed along the active trip.
283 |
# File 'lib/onebusaway_sdk/models/vehicles_for_agency_list_response.rb', line 283 optional :scheduled_distance_along_trip, Float, api_name: :scheduledDistanceAlongTrip |
#service_date ⇒ Integer
Time, in milliseconds since the Unix epoch, of midnight for the start of the service date for the trip.
211 |
# File 'lib/onebusaway_sdk/models/vehicles_for_agency_list_response.rb', line 211 required :service_date, Integer, api_name: :serviceDate |
#situation_ids ⇒ Array<String>?
References to situation elements (if any) applicable to this trip.
289 |
# File 'lib/onebusaway_sdk/models/vehicles_for_agency_list_response.rb', line 289 optional :situation_ids, OnebusawaySDK::Internal::Type::ArrayOf[String], api_name: :situationIds |
#status ⇒ String
Current status modifiers for the trip.
217 |
# File 'lib/onebusaway_sdk/models/vehicles_for_agency_list_response.rb', line 217 required :status, String |
#total_distance_along_trip ⇒ Float
Total length of the trip, in meters.
223 |
# File 'lib/onebusaway_sdk/models/vehicles_for_agency_list_response.rb', line 223 required :total_distance_along_trip, Float, api_name: :totalDistanceAlongTrip |
#vehicle_id ⇒ String?
ID of the transit vehicle currently serving the trip.
295 |
# File 'lib/onebusaway_sdk/models/vehicles_for_agency_list_response.rb', line 295 optional :vehicle_id, String, api_name: :vehicleId |