Class: OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data
- Defined in:
- lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb
Defined Under Namespace
Classes: Entry
Instance Attribute Summary collapse
- #entry ⇒ OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry
- #references ⇒ OnebusawaySDK::Models::References
Instance Method Summary collapse
- #initialize(entry: , references: ) ⇒ Object constructor
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(entry: , references: ) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 |
# File 'lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb', line 15 class Data < OnebusawaySDK::Internal::Type::BaseModel # @!attribute entry # # @return [OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry] required :entry, -> { OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry } # @!attribute references # # @return [OnebusawaySDK::Models::References] required :references, -> { OnebusawaySDK::References } # @!method initialize(entry:, references:) # @param entry [OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry] # @param references [OnebusawaySDK::Models::References] # @see OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data#entry class Entry < OnebusawaySDK::Internal::Type::BaseModel # @!attribute arrivals_and_departures # # @return [Array<OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry::ArrivalsAndDeparture>] required :arrivals_and_departures, -> { OnebusawaySDK::Internal::Type::ArrayOf[OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry::ArrivalsAndDeparture] }, api_name: :arrivalsAndDepartures # @!method initialize(arrivals_and_departures:) # @param arrivals_and_departures [Array<OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry::ArrivalsAndDeparture>] class ArrivalsAndDeparture < OnebusawaySDK::Internal::Type::BaseModel # @!attribute arrival_enabled # Indicates if riders can arrive on this transit vehicle. # # @return [Boolean] required :arrival_enabled, OnebusawaySDK::Internal::Type::Boolean, api_name: :arrivalEnabled # @!attribute block_trip_sequence # Index of this arrival’s trip into the sequence of trips for the active block. # # @return [Integer] required :block_trip_sequence, Integer, api_name: :blockTripSequence # @!attribute departure_enabled # Indicates if riders can depart from this transit vehicle. # # @return [Boolean] required :departure_enabled, OnebusawaySDK::Internal::Type::Boolean, api_name: :departureEnabled # @!attribute number_of_stops_away # Number of stops between the arriving transit vehicle and the current stop # (excluding the current stop). # # @return [Integer] required :number_of_stops_away, Integer, api_name: :numberOfStopsAway # @!attribute predicted_arrival_time # Predicted arrival time, in milliseconds since Unix epoch (zero if no real-time # available). # # @return [Integer] required :predicted_arrival_time, Integer, api_name: :predictedArrivalTime # @!attribute predicted_departure_time # Predicted departure time, in milliseconds since Unix epoch (zero if no real-time # available). # # @return [Integer] required :predicted_departure_time, Integer, api_name: :predictedDepartureTime # @!attribute route_id # The ID of the route for the arriving vehicle. # # @return [String] required :route_id, String, api_name: :routeId # @!attribute scheduled_arrival_time # Scheduled arrival time, in milliseconds since Unix epoch. # # @return [Integer] required :scheduled_arrival_time, Integer, api_name: :scheduledArrivalTime # @!attribute scheduled_departure_time # Scheduled departure time, in milliseconds since Unix epoch. # # @return [Integer] required :scheduled_departure_time, Integer, api_name: :scheduledDepartureTime # @!attribute service_date # Time, in milliseconds since the Unix epoch, of midnight for the start of the # service date for the trip. # # @return [Integer] required :service_date, Integer, api_name: :serviceDate # @!attribute stop_id # The ID of the stop the vehicle is arriving at. # # @return [String] required :stop_id, String, api_name: :stopId # @!attribute stop_sequence # Index of the stop into the sequence of stops that make up the trip for this # arrival. # # @return [Integer] required :stop_sequence, Integer, api_name: :stopSequence # @!attribute total_stops_in_trip # Total number of stops visited on the trip for this arrival. # # @return [Integer] required :total_stops_in_trip, Integer, api_name: :totalStopsInTrip # @!attribute trip_headsign # Optional trip headsign that potentially overrides the trip headsign in the # referenced trip element. # # @return [String] required :trip_headsign, String, api_name: :tripHeadsign # @!attribute trip_id # The ID of the trip for the arriving vehicle. # # @return [String] required :trip_id, String, api_name: :tripId # @!attribute vehicle_id # ID of the transit vehicle serving this trip. # # @return [String] required :vehicle_id, String, api_name: :vehicleId # @!attribute actual_track # The actual track information of the arriving transit vehicle. # # @return [String, nil] optional :actual_track, String, api_name: :actualTrack # @!attribute distance_from_stop # Distance of the arriving transit vehicle from the stop, in meters. # # @return [Float, nil] optional :distance_from_stop, Float, api_name: :distanceFromStop # @!attribute frequency # Information about frequency-based scheduling, if applicable to the trip. # # @return [String, nil] optional :frequency, String # @!attribute historical_occupancy # Historical occupancy information of the transit vehicle. # # @return [String, nil] optional :historical_occupancy, String, api_name: :historicalOccupancy # @!attribute last_update_time # Timestamp of the last update time for this arrival. # # @return [Integer, nil] optional :last_update_time, Integer, api_name: :lastUpdateTime # @!attribute occupancy_status # Current occupancy status of the transit vehicle. # # @return [String, nil] optional :occupancy_status, String, api_name: :occupancyStatus # @!attribute predicted # Indicates if real-time arrival info is available for this trip. # # @return [Boolean, nil] optional :predicted, OnebusawaySDK::Internal::Type::Boolean # @!attribute predicted_arrival_interval # Interval for predicted arrival time, if available. # # @return [String, nil] optional :predicted_arrival_interval, String, api_name: :predictedArrivalInterval # @!attribute predicted_departure_interval # Interval for predicted departure time, if available. # # @return [String, nil] optional :predicted_departure_interval, String, api_name: :predictedDepartureInterval # @!attribute predicted_occupancy # Predicted occupancy status of the transit vehicle. # # @return [String, nil] optional :predicted_occupancy, String, api_name: :predictedOccupancy # @!attribute route_long_name # Optional route long name that potentially overrides the route long name in the # referenced route element. # # @return [String, nil] optional :route_long_name, String, api_name: :routeLongName # @!attribute route_short_name # Optional route short name that potentially overrides the route short name in the # referenced route element. # # @return [String, nil] optional :route_short_name, String, api_name: :routeShortName # @!attribute scheduled_arrival_interval # Interval for scheduled arrival time. # # @return [String, nil] optional :scheduled_arrival_interval, String, api_name: :scheduledArrivalInterval # @!attribute scheduled_departure_interval # Interval for scheduled departure time. # # @return [String, nil] optional :scheduled_departure_interval, String, api_name: :scheduledDepartureInterval # @!attribute scheduled_track # Scheduled track information of the arriving transit vehicle. # # @return [String, nil] optional :scheduled_track, String, api_name: :scheduledTrack # @!attribute situation_ids # References to situation elements (if any) applicable to this arrival. # # @return [Array<String>, nil] optional :situation_ids, OnebusawaySDK::Internal::Type::ArrayOf[String], api_name: :situationIds # @!attribute status # Current status of the arrival. # # @return [String, nil] optional :status, String # @!attribute trip_status # Trip-specific status for the arriving transit vehicle. # # @return [OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry::ArrivalsAndDeparture::TripStatus, nil] optional :trip_status, -> { OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry::ArrivalsAndDeparture::TripStatus }, api_name: :tripStatus # @!method initialize(arrival_enabled:, block_trip_sequence:, departure_enabled:, number_of_stops_away:, predicted_arrival_time:, predicted_departure_time:, route_id:, scheduled_arrival_time:, scheduled_departure_time:, service_date:, stop_id:, stop_sequence:, total_stops_in_trip:, trip_headsign:, trip_id:, vehicle_id:, actual_track: nil, distance_from_stop: nil, frequency: nil, historical_occupancy: nil, last_update_time: nil, occupancy_status: nil, predicted: nil, predicted_arrival_interval: nil, predicted_departure_interval: nil, predicted_occupancy: nil, route_long_name: nil, route_short_name: nil, scheduled_arrival_interval: nil, scheduled_departure_interval: nil, scheduled_track: nil, situation_ids: nil, status: nil, trip_status: nil) # Some parameter documentations has been truncated, see # {OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry::ArrivalsAndDeparture} # for more details. # # @param arrival_enabled [Boolean] Indicates if riders can arrive on this transit vehicle. # # @param block_trip_sequence [Integer] Index of this arrival’s trip into the sequence of trips for the active block. # # @param departure_enabled [Boolean] Indicates if riders can depart from this transit vehicle. # # @param number_of_stops_away [Integer] Number of stops between the arriving transit vehicle and the current stop (exclu # # @param predicted_arrival_time [Integer] Predicted arrival time, in milliseconds since Unix epoch (zero if no real-time a # # @param predicted_departure_time [Integer] Predicted departure time, in milliseconds since Unix epoch (zero if no real-time # # @param route_id [String] The ID of the route for the arriving vehicle. # # @param scheduled_arrival_time [Integer] Scheduled arrival time, in milliseconds since Unix epoch. # # @param scheduled_departure_time [Integer] Scheduled departure time, in milliseconds since Unix epoch. # # @param service_date [Integer] Time, in milliseconds since the Unix epoch, of midnight for the start of the ser # # @param stop_id [String] The ID of the stop the vehicle is arriving at. # # @param stop_sequence [Integer] Index of the stop into the sequence of stops that make up the trip for this arri # # @param total_stops_in_trip [Integer] Total number of stops visited on the trip for this arrival. # # @param trip_headsign [String] Optional trip headsign that potentially overrides the trip headsign in the refer # # @param trip_id [String] The ID of the trip for the arriving vehicle. # # @param vehicle_id [String] ID of the transit vehicle serving this trip. # # @param actual_track [String] The actual track information of the arriving transit vehicle. # # @param distance_from_stop [Float] Distance of the arriving transit vehicle from the stop, in meters. # # @param frequency [String] Information about frequency-based scheduling, if applicable to the trip. # # @param historical_occupancy [String] Historical occupancy information of the transit vehicle. # # @param last_update_time [Integer] Timestamp of the last update time for this arrival. # # @param occupancy_status [String] Current occupancy status of the transit vehicle. # # @param predicted [Boolean] Indicates if real-time arrival info is available for this trip. # # @param predicted_arrival_interval [String] Interval for predicted arrival time, if available. # # @param predicted_departure_interval [String] Interval for predicted departure time, if available. # # @param predicted_occupancy [String] Predicted occupancy status of the transit vehicle. # # @param route_long_name [String] Optional route long name that potentially overrides the route long name in the r # # @param route_short_name [String] Optional route short name that potentially overrides the route short name in the # # @param scheduled_arrival_interval [String] Interval for scheduled arrival time. # # @param scheduled_departure_interval [String] Interval for scheduled departure time. # # @param scheduled_track [String] Scheduled track information of the arriving transit vehicle. # # @param situation_ids [Array<String>] References to situation elements (if any) applicable to this arrival. # # @param status [String] Current status of the arrival. # # @param trip_status [OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry::ArrivalsAndDeparture::TripStatus] Trip-specific status for the arriving transit vehicle. # @see OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry::ArrivalsAndDeparture#trip_status class TripStatus < OnebusawaySDK::Internal::Type::BaseModel # @!attribute active_trip_id # Trip ID of the trip the vehicle is actively serving. # # @return [String] required :active_trip_id, String, api_name: :activeTripId # @!attribute block_trip_sequence # Index of the active trip into the sequence of trips for the active block. # # @return [Integer] required :block_trip_sequence, Integer, api_name: :blockTripSequence # @!attribute closest_stop # ID of the closest stop to the current location of the transit vehicle. # # @return [String] required :closest_stop, String, api_name: :closestStop # @!attribute distance_along_trip # Distance, in meters, the transit vehicle has progressed along the active trip. # # @return [Float] required :distance_along_trip, Float, api_name: :distanceAlongTrip # @!attribute last_known_distance_along_trip # Last known distance along the trip received in real-time from the transit # vehicle. # # @return [Float] required :last_known_distance_along_trip, Float, api_name: :lastKnownDistanceAlongTrip # @!attribute last_location_update_time # Timestamp of the last known real-time location update from the transit vehicle. # # @return [Integer] required :last_location_update_time, Integer, api_name: :lastLocationUpdateTime # @!attribute last_update_time # Timestamp of the last known real-time update from the transit vehicle. # # @return [Integer] required :last_update_time, Integer, api_name: :lastUpdateTime # @!attribute occupancy_capacity # Capacity of the transit vehicle in terms of occupancy. # # @return [Integer] required :occupancy_capacity, Integer, api_name: :occupancyCapacity # @!attribute occupancy_count # Current count of occupants in the transit vehicle. # # @return [Integer] required :occupancy_count, Integer, api_name: :occupancyCount # @!attribute occupancy_status # Current occupancy status of the transit vehicle. # # @return [String] required :occupancy_status, String, api_name: :occupancyStatus # @!attribute phase # Current journey phase of the trip. # # @return [String] required :phase, String # @!attribute predicted # Indicates if real-time arrival info is available for this trip. # # @return [Boolean] required :predicted, OnebusawaySDK::Internal::Type::Boolean # @!attribute schedule_deviation # Deviation from the schedule in seconds (positive for late, negative for early). # # @return [Integer] required :schedule_deviation, Integer, api_name: :scheduleDeviation # @!attribute service_date # Time, in milliseconds since the Unix epoch, of midnight for the start of the # service date for the trip. # # @return [Integer] required :service_date, Integer, api_name: :serviceDate # @!attribute status # Current status modifiers for the trip. # # @return [String] required :status, String # @!attribute total_distance_along_trip # Total length of the trip, in meters. # # @return [Float] required :total_distance_along_trip, Float, api_name: :totalDistanceAlongTrip # @!attribute closest_stop_time_offset # Time offset from the closest stop to the current position of the transit vehicle # (in seconds). # # @return [Integer, nil] optional :closest_stop_time_offset, Integer, api_name: :closestStopTimeOffset # @!attribute frequency # Information about frequency-based scheduling, if applicable to the trip. # # @return [String, nil] optional :frequency, String # @!attribute last_known_location # Last known location of the transit vehicle. # # @return [OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry::ArrivalsAndDeparture::TripStatus::LastKnownLocation, nil] optional :last_known_location, -> { OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry::ArrivalsAndDeparture::TripStatus::LastKnownLocation }, api_name: :lastKnownLocation # @!attribute last_known_orientation # Last known orientation value received in real-time from the transit vehicle. # # @return [Float, nil] optional :last_known_orientation, Float, api_name: :lastKnownOrientation # @!attribute next_stop # ID of the next stop the transit vehicle is scheduled to arrive at. # # @return [String, nil] optional :next_stop, String, api_name: :nextStop # @!attribute next_stop_time_offset # Time offset from the next stop to the current position of the transit vehicle # (in seconds). # # @return [Integer, nil] optional :next_stop_time_offset, Integer, api_name: :nextStopTimeOffset # @!attribute orientation # Orientation of the transit vehicle, represented as an angle in degrees. # # @return [Float, nil] optional :orientation, Float # @!attribute position # Current position of the transit vehicle. # # @return [OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry::ArrivalsAndDeparture::TripStatus::Position, nil] optional :position, -> { OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry::ArrivalsAndDeparture::TripStatus::Position } # @!attribute scheduled_distance_along_trip # Distance, in meters, the transit vehicle is scheduled to have progressed along # the active trip. # # @return [Float, nil] optional :scheduled_distance_along_trip, Float, api_name: :scheduledDistanceAlongTrip # @!attribute situation_ids # References to situation elements (if any) applicable to this trip. # # @return [Array<String>, nil] optional :situation_ids, OnebusawaySDK::Internal::Type::ArrayOf[String], api_name: :situationIds # @!attribute vehicle_id # ID of the transit vehicle currently serving the trip. # # @return [String, nil] optional :vehicle_id, String, api_name: :vehicleId # @!method initialize(active_trip_id:, block_trip_sequence:, closest_stop:, distance_along_trip:, last_known_distance_along_trip:, last_location_update_time:, last_update_time:, occupancy_capacity:, occupancy_count:, occupancy_status:, phase:, predicted:, schedule_deviation:, service_date:, status:, total_distance_along_trip:, closest_stop_time_offset: nil, frequency: nil, last_known_location: nil, last_known_orientation: nil, next_stop: nil, next_stop_time_offset: nil, orientation: nil, position: nil, scheduled_distance_along_trip: nil, situation_ids: nil, vehicle_id: nil) # Some parameter documentations has been truncated, see # {OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry::ArrivalsAndDeparture::TripStatus} # for more details. # # Trip-specific status for the arriving transit vehicle. # # @param active_trip_id [String] Trip ID of the trip the vehicle is actively serving. # # @param block_trip_sequence [Integer] Index of the active trip into the sequence of trips for the active block. # # @param closest_stop [String] ID of the closest stop to the current location of the transit vehicle. # # @param distance_along_trip [Float] Distance, in meters, the transit vehicle has progressed along the active trip. # # @param last_known_distance_along_trip [Float] Last known distance along the trip received in real-time from the transit vehicl # # @param last_location_update_time [Integer] Timestamp of the last known real-time location update from the transit vehicle. # # @param last_update_time [Integer] Timestamp of the last known real-time update from the transit vehicle. # # @param occupancy_capacity [Integer] Capacity of the transit vehicle in terms of occupancy. # # @param occupancy_count [Integer] Current count of occupants in the transit vehicle. # # @param occupancy_status [String] Current occupancy status of the transit vehicle. # # @param phase [String] Current journey phase of the trip. # # @param predicted [Boolean] Indicates if real-time arrival info is available for this trip. # # @param schedule_deviation [Integer] Deviation from the schedule in seconds (positive for late, negative for early). # # @param service_date [Integer] Time, in milliseconds since the Unix epoch, of midnight for the start of the ser # # @param status [String] Current status modifiers for the trip. # # @param total_distance_along_trip [Float] Total length of the trip, in meters. # # @param closest_stop_time_offset [Integer] Time offset from the closest stop to the current position of the transit vehicle # # @param frequency [String] Information about frequency-based scheduling, if applicable to the trip. # # @param last_known_location [OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry::ArrivalsAndDeparture::TripStatus::LastKnownLocation] Last known location of the transit vehicle. # # @param last_known_orientation [Float] Last known orientation value received in real-time from the transit vehicle. # # @param next_stop [String] ID of the next stop the transit vehicle is scheduled to arrive at. # # @param next_stop_time_offset [Integer] Time offset from the next stop to the current position of the transit vehicle (i # # @param orientation [Float] Orientation of the transit vehicle, represented as an angle in degrees. # # @param position [OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry::ArrivalsAndDeparture::TripStatus::Position] Current position of the transit vehicle. # # @param scheduled_distance_along_trip [Float] Distance, in meters, the transit vehicle is scheduled to have progressed along t # # @param situation_ids [Array<String>] References to situation elements (if any) applicable to this trip. # # @param vehicle_id [String] ID of the transit vehicle currently serving the trip. # @see OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry::ArrivalsAndDeparture::TripStatus#last_known_location class LastKnownLocation < OnebusawaySDK::Internal::Type::BaseModel # @!attribute lat # Latitude of the last known location of the transit vehicle. # # @return [Float, nil] optional :lat, Float # @!attribute lon # Longitude of the last known location of the transit vehicle. # # @return [Float, nil] optional :lon, Float # @!method initialize(lat: nil, lon: nil) # Last known location of the transit vehicle. # # @param lat [Float] Latitude of the last known location of the transit vehicle. # # @param lon [Float] Longitude of the last known location of the transit vehicle. end # @see OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry::ArrivalsAndDeparture::TripStatus#position class Position < OnebusawaySDK::Internal::Type::BaseModel # @!attribute lat # Latitude of the current position of the transit vehicle. # # @return [Float, nil] optional :lat, Float # @!attribute lon # Longitude of the current position of the transit vehicle. # # @return [Float, nil] optional :lon, Float # @!method initialize(lat: nil, lon: nil) # Current position of the transit vehicle. # # @param lat [Float] Latitude of the current position of the transit vehicle. # # @param lon [Float] Longitude of the current position of the transit vehicle. end end end end end |
Instance Attribute Details
#entry ⇒ OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry
19 |
# File 'lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb', line 19 required :entry, -> { OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry } |
#references ⇒ OnebusawaySDK::Models::References
24 |
# File 'lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb', line 24 required :references, -> { OnebusawaySDK::References } |