Class: OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry::ArrivalsAndDeparture::TripStatus

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb

Overview

See Also:

Defined Under Namespace

Classes: LastKnownLocation, Position

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Parameters:

  • lat (Float) (defaults to: nil)

    Latitude of the last known location of the transit vehicle.

  • lon (Float) (defaults to: nil)

    Longitude of the last known location of the transit vehicle.



# File 'lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb', line 502

Instance Attribute Details

#active_trip_idString

Trip ID of the trip the vehicle is actively serving.

Returns:

  • (String)


336
# File 'lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb', line 336

required :active_trip_id, String, api_name: :activeTripId

#block_trip_sequenceInteger

Index of the active trip into the sequence of trips for the active block.

Returns:

  • (Integer)


342
# File 'lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb', line 342

required :block_trip_sequence, Integer, api_name: :blockTripSequence

#closest_stopString

ID of the closest stop to the current location of the transit vehicle.

Returns:

  • (String)


348
# File 'lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb', line 348

required :closest_stop, String, api_name: :closestStop

#closest_stop_time_offsetInteger?

Time offset from the closest stop to the current position of the transit vehicle (in seconds).

Returns:

  • (Integer, nil)


435
# File 'lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb', line 435

optional :closest_stop_time_offset, Integer, api_name: :closestStopTimeOffset

#distance_along_tripFloat

Distance, in meters, the transit vehicle has progressed along the active trip.

Returns:

  • (Float)


354
# File 'lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb', line 354

required :distance_along_trip, Float, api_name: :distanceAlongTrip

#frequencyString?

Information about frequency-based scheduling, if applicable to the trip.

Returns:

  • (String, nil)


441
# File 'lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb', line 441

optional :frequency, String

#last_known_distance_along_tripFloat

Last known distance along the trip received in real-time from the transit vehicle.

Returns:

  • (Float)


361
# File 'lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb', line 361

required :last_known_distance_along_trip, Float, api_name: :lastKnownDistanceAlongTrip

#last_known_locationOnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry::ArrivalsAndDeparture::TripStatus::LastKnownLocation?

Last known location of the transit vehicle.



447
448
449
# File 'lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb', line 447

optional :last_known_location,
-> { OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry::ArrivalsAndDeparture::TripStatus::LastKnownLocation },
api_name: :lastKnownLocation

#last_known_orientationFloat?

Last known orientation value received in real-time from the transit vehicle.

Returns:

  • (Float, nil)


455
# File 'lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb', line 455

optional :last_known_orientation, Float, api_name: :lastKnownOrientation

#last_location_update_timeInteger

Timestamp of the last known real-time location update from the transit vehicle.

Returns:

  • (Integer)


367
# File 'lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb', line 367

required :last_location_update_time, Integer, api_name: :lastLocationUpdateTime

#last_update_timeInteger

Timestamp of the last known real-time update from the transit vehicle.

Returns:

  • (Integer)


373
# File 'lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb', line 373

required :last_update_time, Integer, api_name: :lastUpdateTime

#next_stopString?

ID of the next stop the transit vehicle is scheduled to arrive at.

Returns:

  • (String, nil)


461
# File 'lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb', line 461

optional :next_stop, String, api_name: :nextStop

#next_stop_time_offsetInteger?

Time offset from the next stop to the current position of the transit vehicle (in seconds).

Returns:

  • (Integer, nil)


468
# File 'lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb', line 468

optional :next_stop_time_offset, Integer, api_name: :nextStopTimeOffset

#occupancy_capacityInteger

Capacity of the transit vehicle in terms of occupancy.

Returns:

  • (Integer)


379
# File 'lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb', line 379

required :occupancy_capacity, Integer, api_name: :occupancyCapacity

#occupancy_countInteger

Current count of occupants in the transit vehicle.

Returns:

  • (Integer)


385
# File 'lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb', line 385

required :occupancy_count, Integer, api_name: :occupancyCount

#occupancy_statusString

Current occupancy status of the transit vehicle.

Returns:

  • (String)


391
# File 'lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb', line 391

required :occupancy_status, String, api_name: :occupancyStatus

#orientationFloat?

Orientation of the transit vehicle, represented as an angle in degrees.

Returns:

  • (Float, nil)


474
# File 'lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb', line 474

optional :orientation, Float

#phaseString

Current journey phase of the trip.

Returns:

  • (String)


397
# File 'lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb', line 397

required :phase, String

#positionOnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry::ArrivalsAndDeparture::TripStatus::Position?

Current position of the transit vehicle.



480
481
# File 'lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb', line 480

optional :position,
-> { OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry::ArrivalsAndDeparture::TripStatus::Position }

#predictedBoolean

Indicates if real-time arrival info is available for this trip.

Returns:

  • (Boolean)


403
# File 'lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb', line 403

required :predicted, OnebusawaySDK::Internal::Type::Boolean

#schedule_deviationInteger

Deviation from the schedule in seconds (positive for late, negative for early).

Returns:

  • (Integer)


409
# File 'lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb', line 409

required :schedule_deviation, Integer, api_name: :scheduleDeviation

#scheduled_distance_along_tripFloat?

Distance, in meters, the transit vehicle is scheduled to have progressed along the active trip.

Returns:

  • (Float, nil)


488
# File 'lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb', line 488

optional :scheduled_distance_along_trip, Float, api_name: :scheduledDistanceAlongTrip

#service_dateInteger

Time, in milliseconds since the Unix epoch, of midnight for the start of the service date for the trip.

Returns:

  • (Integer)


416
# File 'lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb', line 416

required :service_date, Integer, api_name: :serviceDate

#situation_idsArray<String>?

References to situation elements (if any) applicable to this trip.

Returns:

  • (Array<String>, nil)


494
# File 'lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb', line 494

optional :situation_ids, OnebusawaySDK::Internal::Type::ArrayOf[String], api_name: :situationIds

#statusString

Current status modifiers for the trip.

Returns:

  • (String)


422
# File 'lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb', line 422

required :status, String

#total_distance_along_tripFloat

Total length of the trip, in meters.

Returns:

  • (Float)


428
# File 'lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb', line 428

required :total_distance_along_trip, Float, api_name: :totalDistanceAlongTrip

#vehicle_idString?

ID of the transit vehicle currently serving the trip.

Returns:

  • (String, nil)


500
# File 'lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb', line 500

optional :vehicle_id, String, api_name: :vehicleId