Module: Flightxml::V2::Operations

Included in:
Client
Defined in:
lib/flightxml/v2/operations.rb

Instance Method Summary collapse

Instance Method Details

#aircraft_type(type:) ⇒ Hash

Perform a AircraftType request

Parameters:

  • type (String)

Returns:

  • (Hash)

    A Hash containing a AircraftTypeResults response

See Also:


17
18
19
20
21
22
23
24
25
# File 'lib/flightxml/v2/operations.rb', line 17

def aircraft_type(type:)
  command = Command.new(
    command: :AircraftType,
    result: Types::AircraftTypeResults,
    version: 2,
    parameters: {type: type}
  )
  perform_operation(command)
end

#airline_flight_info(faFlightID:) ⇒ Hash

Perform a AirlineFlightInfo request

Parameters:

  • faFlightID (String)

Returns:

  • (Hash)

    A Hash containing a AirlineFlightInfoResults response

See Also:


32
33
34
35
36
37
38
39
40
# File 'lib/flightxml/v2/operations.rb', line 32

def airline_flight_info(faFlightID:)
  command = Command.new(
    command: :AirlineFlightInfo,
    result: Types::AirlineFlightInfoResults,
    version: 2,
    parameters: {faFlightID: faFlightID}
  )
  perform_operation(command)
end

#airline_flight_schedules(startDate:, endDate:, origin:, destination:, airline:, flightno:, howMany:, offset:) ⇒ Hash

Perform a AirlineFlightSchedules request

Parameters:

  • startDate (Int)
  • endDate (Int)
  • origin (String)
  • destination (String)
  • airline (String)
  • flightno (String)
  • howMany (Int)
  • offset (Int)

Returns:

  • (Hash)

    A Hash containing a AirlineFlightSchedulesResults response

See Also:


54
55
56
57
58
59
60
61
62
# File 'lib/flightxml/v2/operations.rb', line 54

def airline_flight_schedules(startDate:, endDate:, origin:, destination:, airline:, flightno:, howMany:, offset:)
  command = Command.new(
    command: :AirlineFlightSchedules,
    result: Types::AirlineFlightSchedulesResults,
    version: 2,
    parameters: {startDate: startDate, endDate: endDate, origin: origin, destination: destination, airline: airline, flightno: flightno, howMany: howMany, offset: offset}
  )
  perform_operation(command)
end

#airline_info(airlineCode:) ⇒ Hash

Perform a AirlineInfo request

Parameters:

  • airlineCode (String)

Returns:

  • (Hash)

    A Hash containing a AirlineInfoResults response

See Also:


69
70
71
72
73
74
75
76
77
# File 'lib/flightxml/v2/operations.rb', line 69

def airline_info(airlineCode:)
  command = Command.new(
    command: :AirlineInfo,
    result: Types::AirlineInfoResults,
    version: 2,
    parameters: {airlineCode: airlineCode}
  )
  perform_operation(command)
end

#airline_insightHash

Perform a AirlineInsight request

Returns:

  • (Hash)

    A Hash containing a AirlineInsightResults response

See Also:


83
84
85
86
87
88
89
90
91
# File 'lib/flightxml/v2/operations.rb', line 83

def airline_insight()
  command = Command.new(
    command: :AirlineInsight,
    result: Types::AirlineInsightResults,
    version: 2,
    parameters: {}
  )
  perform_operation(command)
end

#airport_info(airportCode:) ⇒ Hash

Perform a AirportInfo request

Parameters:

  • airportCode (String)

Returns:

  • (Hash)

    A Hash containing a AirportInfoResults response

See Also:


98
99
100
101
102
103
104
105
106
# File 'lib/flightxml/v2/operations.rb', line 98

def airport_info(airportCode:)
  command = Command.new(
    command: :AirportInfo,
    result: Types::AirportInfoResults,
    version: 2,
    parameters: {airportCode: airportCode}
  )
  perform_operation(command)
end

#all_airlinesHash

Perform a AllAirlines request

Returns:

  • (Hash)

    A Hash containing a AllAirlinesResults response

See Also:


112
113
114
115
116
117
118
119
120
# File 'lib/flightxml/v2/operations.rb', line 112

def all_airlines()
  command = Command.new(
    command: :AllAirlines,
    result: Types::AllAirlinesResults,
    version: 2,
    parameters: {}
  )
  perform_operation(command)
end

#all_airportsHash

Perform a AllAirports request

Returns:

  • (Hash)

    A Hash containing a AllAirportsResults response

See Also:


126
127
128
129
130
131
132
133
134
# File 'lib/flightxml/v2/operations.rb', line 126

def all_airports()
  command = Command.new(
    command: :AllAirports,
    result: Types::AllAirportsResults,
    version: 2,
    parameters: {}
  )
  perform_operation(command)
end

#arrived(airport:, howMany:, filter:, offset:) ⇒ Hash

Perform a Arrived request

Parameters:

  • airport (String)
  • howMany (Int)
  • filter (String)
  • offset (Int)

Returns:

  • (Hash)

    A Hash containing a ArrivedResults response

See Also:


144
145
146
147
148
149
150
151
152
# File 'lib/flightxml/v2/operations.rb', line 144

def arrived(airport:, howMany:, filter:, offset:)
  command = Command.new(
    command: :Arrived,
    result: Types::ArrivedResults,
    version: 2,
    parameters: {airport: airport, howMany: howMany, filter: filter, offset: offset}
  )
  perform_operation(command)
end

#block_ident_check(ident:) ⇒ Hash

Perform a BlockIdentCheck request

Parameters:

  • ident (String)

Returns:

  • (Hash)

    A Hash containing a BlockIdentCheckResults response

See Also:


159
160
161
162
163
164
165
166
167
# File 'lib/flightxml/v2/operations.rb', line 159

def block_ident_check(ident:)
  command = Command.new(
    command: :BlockIdentCheck,
    result: Types::BlockIdentCheckResults,
    version: 2,
    parameters: {ident: ident}
  )
  perform_operation(command)
end

#count_airport_operations(airport:) ⇒ Hash

Perform a CountAirportOperations request

Parameters:

  • airport (String)

Returns:

  • (Hash)

    A Hash containing a CountAirportOperationsResults response

See Also:


174
175
176
177
178
179
180
181
182
# File 'lib/flightxml/v2/operations.rb', line 174

def count_airport_operations(airport:)
  command = Command.new(
    command: :CountAirportOperations,
    result: Types::CountAirportOperationsResults,
    version: 2,
    parameters: {airport: airport}
  )
  perform_operation(command)
end

#count_all_enroute_airline_operationsHash

Perform a CountAllEnrouteAirlineOperations request

Returns:

  • (Hash)

    A Hash containing a CountAllEnrouteAirlineOperationsResults response

See Also:


188
189
190
191
192
193
194
195
196
# File 'lib/flightxml/v2/operations.rb', line 188

def count_all_enroute_airline_operations()
  command = Command.new(
    command: :CountAllEnrouteAirlineOperations,
    result: Types::CountAllEnrouteAirlineOperationsResults,
    version: 2,
    parameters: {}
  )
  perform_operation(command)
end

#decode_flight_route(faFlightID:) ⇒ Hash

Perform a DecodeFlightRoute request

Parameters:

  • faFlightID (String)

Returns:

  • (Hash)

    A Hash containing a DecodeFlightRouteResults response

See Also:


203
204
205
206
207
208
209
210
211
# File 'lib/flightxml/v2/operations.rb', line 203

def decode_flight_route(faFlightID:)
  command = Command.new(
    command: :DecodeFlightRoute,
    result: Types::DecodeFlightRouteResults,
    version: 2,
    parameters: {faFlightID: faFlightID}
  )
  perform_operation(command)
end

#decode_route(origin:, route:, destination:) ⇒ Hash

Perform a DecodeRoute request

Parameters:

  • origin (String)
  • route (String)
  • destination (String)

Returns:

  • (Hash)

    A Hash containing a DecodeRouteResults response

See Also:


220
221
222
223
224
225
226
227
228
# File 'lib/flightxml/v2/operations.rb', line 220

def decode_route(origin:, route:, destination:)
  command = Command.new(
    command: :DecodeRoute,
    result: Types::DecodeRouteResults,
    version: 2,
    parameters: {origin: origin, route: route, destination: destination}
  )
  perform_operation(command)
end

#delete_alert(alert_id:) ⇒ Hash

Perform a DeleteAlert request

Parameters:

  • alert_id (Int)

Returns:

  • (Hash)

    A Hash containing a DeleteAlertResults response

See Also:


235
236
237
238
239
240
241
242
243
# File 'lib/flightxml/v2/operations.rb', line 235

def delete_alert(alert_id:)
  command = Command.new(
    command: :DeleteAlert,
    result: Types::DeleteAlertResults,
    version: 2,
    parameters: {alert_id: alert_id}
  )
  perform_operation(command)
end

#departed(airport:, howMany:, filter:, offset:) ⇒ Hash

Perform a Departed request

Parameters:

  • airport (String)
  • howMany (Int)
  • filter (String)
  • offset (Int)

Returns:

  • (Hash)

    A Hash containing a DepartedResults response

See Also:


253
254
255
256
257
258
259
260
261
# File 'lib/flightxml/v2/operations.rb', line 253

def departed(airport:, howMany:, filter:, offset:)
  command = Command.new(
    command: :Departed,
    result: Types::DepartedResults,
    version: 2,
    parameters: {airport: airport, howMany: howMany, filter: filter, offset: offset}
  )
  perform_operation(command)
end

#enroute(airport:, howMany:, filter:, offset:) ⇒ Hash

Perform a Enroute request

Parameters:

  • airport (String)
  • howMany (Int)
  • filter (String)
  • offset (Int)

Returns:

  • (Hash)

    A Hash containing a EnrouteResults response

See Also:


271
272
273
274
275
276
277
278
279
# File 'lib/flightxml/v2/operations.rb', line 271

def enroute(airport:, howMany:, filter:, offset:)
  command = Command.new(
    command: :Enroute,
    result: Types::EnrouteResults,
    version: 2,
    parameters: {airport: airport, howMany: howMany, filter: filter, offset: offset}
  )
  perform_operation(command)
end

#fleet_arrived(fleet:, howMany:, offset:) ⇒ Hash

Perform a FleetArrived request

Parameters:

  • fleet (String)
  • howMany (Int)
  • offset (Int)

Returns:

  • (Hash)

    A Hash containing a FleetArrivedResults response

See Also:


288
289
290
291
292
293
294
295
296
# File 'lib/flightxml/v2/operations.rb', line 288

def fleet_arrived(fleet:, howMany:, offset:)
  command = Command.new(
    command: :FleetArrived,
    result: Types::FleetArrivedResults,
    version: 2,
    parameters: {fleet: fleet, howMany: howMany, offset: offset}
  )
  perform_operation(command)
end

#fleet_scheduled(fleet:, howMany:, offset:) ⇒ Hash

Perform a FleetScheduled request

Parameters:

  • fleet (String)
  • howMany (Int)
  • offset (Int)

Returns:

  • (Hash)

    A Hash containing a FleetScheduledResults response

See Also:


305
306
307
308
309
310
311
312
313
# File 'lib/flightxml/v2/operations.rb', line 305

def fleet_scheduled(fleet:, howMany:, offset:)
  command = Command.new(
    command: :FleetScheduled,
    result: Types::FleetScheduledResults,
    version: 2,
    parameters: {fleet: fleet, howMany: howMany, offset: offset}
  )
  perform_operation(command)
end

#flight_info(ident:, howMany:) ⇒ Hash

Perform a FlightInfo request

Parameters:

  • ident (String)
  • howMany (Int)

Returns:

  • (Hash)

    A Hash containing a FlightInfoResults response

See Also:


321
322
323
324
325
326
327
328
329
# File 'lib/flightxml/v2/operations.rb', line 321

def flight_info(ident:, howMany:)
  command = Command.new(
    command: :FlightInfo,
    result: Types::FlightInfoResults,
    version: 2,
    parameters: {ident: ident, howMany: howMany}
  )
  perform_operation(command)
end

#flight_info_ex(ident:, howMany:, offset:) ⇒ Hash

Perform a FlightInfoEx request

Parameters:

  • ident (String)
  • howMany (Int)
  • offset (Int)

Returns:

  • (Hash)

    A Hash containing a FlightInfoExResults response

See Also:


338
339
340
341
342
343
344
345
346
# File 'lib/flightxml/v2/operations.rb', line 338

def flight_info_ex(ident:, howMany:, offset:)
  command = Command.new(
    command: :FlightInfoEx,
    result: Types::FlightInfoExResults,
    version: 2,
    parameters: {ident: ident, howMany: howMany, offset: offset}
  )
  perform_operation(command)
end

#get_alertsHash

Perform a GetAlerts request

Returns:

  • (Hash)

    A Hash containing a GetAlertsResults response

See Also:


352
353
354
355
356
357
358
359
360
# File 'lib/flightxml/v2/operations.rb', line 352

def get_alerts()
  command = Command.new(
    command: :GetAlerts,
    result: Types::GetAlertsResults,
    version: 2,
    parameters: {}
  )
  perform_operation(command)
end

#get_flight_i_d(ident:, departureTime:) ⇒ Hash

Perform a GetFlightID request

Parameters:

  • ident (String)
  • departureTime (Int)

Returns:

  • (Hash)

    A Hash containing a GetFlightIDResults response

See Also:


368
369
370
371
372
373
374
375
376
# File 'lib/flightxml/v2/operations.rb', line 368

def get_flight_i_d(ident:, departureTime:)
  command = Command.new(
    command: :GetFlightID,
    result: Types::GetFlightIDResults,
    version: 2,
    parameters: {ident: ident, departureTime: departureTime}
  )
  perform_operation(command)
end

#get_historical_track(faFlightID:) ⇒ Hash

Perform a GetHistoricalTrack request

Parameters:

  • faFlightID (String)

Returns:

  • (Hash)

    A Hash containing a GetHistoricalTrackResults response

See Also:


383
384
385
386
387
388
389
390
391
# File 'lib/flightxml/v2/operations.rb', line 383

def get_historical_track(faFlightID:)
  command = Command.new(
    command: :GetHistoricalTrack,
    result: Types::GetHistoricalTrackResults,
    version: 2,
    parameters: {faFlightID: faFlightID}
  )
  perform_operation(command)
end

#get_last_track(ident:) ⇒ Hash

Perform a GetLastTrack request

Parameters:

  • ident (String)

Returns:

  • (Hash)

    A Hash containing a GetLastTrackResults response

See Also:


398
399
400
401
402
403
404
405
406
# File 'lib/flightxml/v2/operations.rb', line 398

def get_last_track(ident:)
  command = Command.new(
    command: :GetLastTrack,
    result: Types::GetLastTrackResults,
    version: 2,
    parameters: {ident: ident}
  )
  perform_operation(command)
end

#in_flight_info(ident:) ⇒ Hash

Perform a InFlightInfo request

Parameters:

  • ident (String)

Returns:

  • (Hash)

    A Hash containing a InFlightInfoResults response

See Also:


428
429
430
431
432
433
434
435
436
# File 'lib/flightxml/v2/operations.rb', line 428

def in_flight_info(ident:)
  command = Command.new(
    command: :InFlightInfo,
    result: Types::InFlightInfoResults,
    version: 2,
    parameters: {ident: ident}
  )
  perform_operation(command)
end

#inbound_flight_info(faFlightID:) ⇒ Hash

Perform a InboundFlightInfo request

Parameters:

  • faFlightID (String)

Returns:

  • (Hash)

    A Hash containing a InboundFlightInfoResults response

See Also:


413
414
415
416
417
418
419
420
421
# File 'lib/flightxml/v2/operations.rb', line 413

def inbound_flight_info(faFlightID:)
  command = Command.new(
    command: :InboundFlightInfo,
    result: Types::InboundFlightInfoResults,
    version: 2,
    parameters: {faFlightID: faFlightID}
  )
  perform_operation(command)
end

#lat_longs_to_distance(lat1:, lon1:, lat2:, lon2:) ⇒ Hash

Perform a LatLongsToDistance request

Parameters:

  • lat1 (Float)
  • lon1 (Float)
  • lat2 (Float)
  • lon2 (Float)

Returns:

  • (Hash)

    A Hash containing a LatLongsToDistanceResults response

See Also:


446
447
448
449
450
451
452
453
454
# File 'lib/flightxml/v2/operations.rb', line 446

def lat_longs_to_distance(lat1:, lon1:, lat2:, lon2:)
  command = Command.new(
    command: :LatLongsToDistance,
    result: Types::LatLongsToDistanceResults,
    version: 2,
    parameters: {lat1: lat1, lon1: lon1, lat2: lat2, lon2: lon2}
  )
  perform_operation(command)
end

#lat_longs_to_heading(lat1:, lon1:, lat2:, lon2:) ⇒ Hash

Perform a LatLongsToHeading request

Parameters:

  • lat1 (Float)
  • lon1 (Float)
  • lat2 (Float)
  • lon2 (Float)

Returns:

  • (Hash)

    A Hash containing a LatLongsToHeadingResults response

See Also:


464
465
466
467
468
469
470
471
472
# File 'lib/flightxml/v2/operations.rb', line 464

def lat_longs_to_heading(lat1:, lon1:, lat2:, lon2:)
  command = Command.new(
    command: :LatLongsToHeading,
    result: Types::LatLongsToHeadingResults,
    version: 2,
    parameters: {lat1: lat1, lon1: lon1, lat2: lat2, lon2: lon2}
  )
  perform_operation(command)
end

#map_flight(ident:, mapHeight:, mapWidth:) ⇒ Hash

Perform a MapFlight request

Parameters:

  • ident (String)
  • mapHeight (Int)
  • mapWidth (Int)

Returns:

  • (Hash)

    A Hash containing a MapFlightResults response

See Also:


481
482
483
484
485
486
487
488
489
# File 'lib/flightxml/v2/operations.rb', line 481

def map_flight(ident:, mapHeight:, mapWidth:)
  command = Command.new(
    command: :MapFlight,
    result: Types::MapFlightResults,
    version: 2,
    parameters: {ident: ident, mapHeight: mapHeight, mapWidth: mapWidth}
  )
  perform_operation(command)
end

#map_flight_ex(faFlightID:, mapHeight:, mapWidth:, layer_on:, layer_off:, show_data_blocks:, show_airports:, airports_expand_view:, latlon_box:) ⇒ Hash

Perform a MapFlightEx request

Parameters:

  • faFlightID (String)
  • mapHeight (Int)
  • mapWidth (Int)
  • layer_on (String)
  • layer_off (String)
  • show_data_blocks (Boolean)
  • show_airports (Boolean)
  • airports_expand_view (Boolean)
  • latlon_box (Float)

Returns:

  • (Hash)

    A Hash containing a MapFlightExResults response

See Also:


504
505
506
507
508
509
510
511
512
# File 'lib/flightxml/v2/operations.rb', line 504

def map_flight_ex(faFlightID:, mapHeight:, mapWidth:, layer_on:, layer_off:, show_data_blocks:, show_airports:, airports_expand_view:, latlon_box:)
  command = Command.new(
    command: :MapFlightEx,
    result: Types::MapFlightExResults,
    version: 2,
    parameters: {faFlightID: faFlightID, mapHeight: mapHeight, mapWidth: mapWidth, layer_on: layer_on, layer_off: layer_off, show_data_blocks: show_data_blocks, show_airports: show_airports, airports_expand_view: airports_expand_view, latlon_box: latlon_box}
  )
  perform_operation(command)
end

#metar(airport:) ⇒ Hash

Perform a Metar request

Parameters:

  • airport (String)

Returns:

  • (Hash)

    A Hash containing a MetarResults response

See Also:


519
520
521
522
523
524
525
526
527
# File 'lib/flightxml/v2/operations.rb', line 519

def metar(airport:)
  command = Command.new(
    command: :Metar,
    result: Types::MetarResults,
    version: 2,
    parameters: {airport: airport}
  )
  perform_operation(command)
end

#metar_ex(airport:, startTime:, howMany:, offset:) ⇒ Hash

Perform a MetarEx request

Parameters:

  • airport (String)
  • startTime (Int)
  • howMany (Int)
  • offset (Int)

Returns:

  • (Hash)

    A Hash containing a MetarExResults response

See Also:


537
538
539
540
541
542
543
544
545
# File 'lib/flightxml/v2/operations.rb', line 537

def metar_ex(airport:, startTime:, howMany:, offset:)
  command = Command.new(
    command: :MetarEx,
    result: Types::MetarExResults,
    version: 2,
    parameters: {airport: airport, startTime: startTime, howMany: howMany, offset: offset}
  )
  perform_operation(command)
end

#n_taf(airport:) ⇒ Hash

Perform a NTaf request

Parameters:

  • airport (String)

Returns:

  • (Hash)

    A Hash containing a NTafResults response

See Also:


552
553
554
555
556
557
558
559
560
# File 'lib/flightxml/v2/operations.rb', line 552

def n_taf(airport:)
  command = Command.new(
    command: :NTaf,
    result: Types::NTafResults,
    version: 2,
    parameters: {airport: airport}
  )
  perform_operation(command)
end

#register_alert_endpoint(address:, format_type:) ⇒ Hash

Perform a RegisterAlertEndpoint request

Parameters:

  • address (String)
  • format_type (String)

Returns:

  • (Hash)

    A Hash containing a RegisterAlertEndpointResults response

See Also:


568
569
570
571
572
573
574
575
576
# File 'lib/flightxml/v2/operations.rb', line 568

def register_alert_endpoint(address:, format_type:)
  command = Command.new(
    command: :RegisterAlertEndpoint,
    result: Types::RegisterAlertEndpointResults,
    version: 2,
    parameters: {address: address, format_type: format_type}
  )
  perform_operation(command)
end

#routes_between_airports(origin:, destination:) ⇒ Hash

Perform a RoutesBetweenAirports request

Parameters:

  • origin (String)
  • destination (String)

Returns:

  • (Hash)

    A Hash containing a RoutesBetweenAirportsResults response

See Also:


584
585
586
587
588
589
590
591
592
# File 'lib/flightxml/v2/operations.rb', line 584

def routes_between_airports(origin:, destination:)
  command = Command.new(
    command: :RoutesBetweenAirports,
    result: Types::RoutesBetweenAirportsResults,
    version: 2,
    parameters: {origin: origin, destination: destination}
  )
  perform_operation(command)
end

#routes_between_airports_ex(origin:, destination:, howMany:, offset:, maxDepartureAge:, maxFileAge:) ⇒ Hash

Perform a RoutesBetweenAirportsEx request

Parameters:

  • origin (String)
  • destination (String)
  • howMany (Int)
  • offset (Int)
  • maxDepartureAge (String)
  • maxFileAge (String)

Returns:

  • (Hash)

    A Hash containing a RoutesBetweenAirportsExResults response

See Also:


604
605
606
607
608
609
610
611
612
# File 'lib/flightxml/v2/operations.rb', line 604

def routes_between_airports_ex(origin:, destination:, howMany:, offset:, maxDepartureAge:, maxFileAge:)
  command = Command.new(
    command: :RoutesBetweenAirportsEx,
    result: Types::RoutesBetweenAirportsExResults,
    version: 2,
    parameters: {origin: origin, destination: destination, howMany: howMany, offset: offset, maxDepartureAge: maxDepartureAge, maxFileAge: maxFileAge}
  )
  perform_operation(command)
end

#scheduled(airport:, howMany:, filter:, offset:) ⇒ Hash

Perform a Scheduled request

Parameters:

  • airport (String)
  • howMany (Int)
  • filter (String)
  • offset (Int)

Returns:

  • (Hash)

    A Hash containing a ScheduledResults response

See Also:


622
623
624
625
626
627
628
629
630
# File 'lib/flightxml/v2/operations.rb', line 622

def scheduled(airport:, howMany:, filter:, offset:)
  command = Command.new(
    command: :Scheduled,
    result: Types::ScheduledResults,
    version: 2,
    parameters: {airport: airport, howMany: howMany, filter: filter, offset: offset}
  )
  perform_operation(command)
end

#search(query:, howMany:, offset:) ⇒ Hash

Perform a Search request

Parameters:

  • query (String)
  • howMany (Int)
  • offset (Int)

Returns:

  • (Hash)

    A Hash containing a SearchResults response

See Also:


639
640
641
642
643
644
645
646
647
# File 'lib/flightxml/v2/operations.rb', line 639

def search(query:, howMany:, offset:)
  command = Command.new(
    command: :Search,
    result: Types::SearchResults,
    version: 2,
    parameters: {query: query, howMany: howMany, offset: offset}
  )
  perform_operation(command)
end

#search_birdseye_in_flight(query:, howMany:, offset:) ⇒ Hash

Perform a SearchBirdseyeInFlight request

Parameters:

  • query (String)
  • howMany (Int)
  • offset (Int)

Returns:

  • (Hash)

    A Hash containing a SearchBirdseyeInFlightResults response

See Also:


656
657
658
659
660
661
662
663
664
# File 'lib/flightxml/v2/operations.rb', line 656

def search_birdseye_in_flight(query:, howMany:, offset:)
  command = Command.new(
    command: :SearchBirdseyeInFlight,
    result: Types::SearchBirdseyeInFlightResults,
    version: 2,
    parameters: {query: query, howMany: howMany, offset: offset}
  )
  perform_operation(command)
end

#search_birdseye_positions(query:, uniqueFlights:, howMany:, offset:) ⇒ Hash

Perform a SearchBirdseyePositions request

Parameters:

  • query (String)
  • uniqueFlights (Boolean)
  • howMany (Int)
  • offset (Int)

Returns:

  • (Hash)

    A Hash containing a SearchBirdseyePositionsResults response

See Also:


674
675
676
677
678
679
680
681
682
# File 'lib/flightxml/v2/operations.rb', line 674

def search_birdseye_positions(query:, uniqueFlights:, howMany:, offset:)
  command = Command.new(
    command: :SearchBirdseyePositions,
    result: Types::SearchBirdseyePositionsResults,
    version: 2,
    parameters: {query: query, uniqueFlights: uniqueFlights, howMany: howMany, offset: offset}
  )
  perform_operation(command)
end

#search_count(query:) ⇒ Hash

Perform a SearchCount request

Parameters:

  • query (String)

Returns:

  • (Hash)

    A Hash containing a SearchCountResults response

See Also:


689
690
691
692
693
694
695
696
697
# File 'lib/flightxml/v2/operations.rb', line 689

def search_count(query:)
  command = Command.new(
    command: :SearchCount,
    result: Types::SearchCountResults,
    version: 2,
    parameters: {query: query}
  )
  perform_operation(command)
end

#set_alert(alert_id:, ident:, origin:, destination:, aircrafttype:, date_start:, date_end:, channels:, enabled:, max_weekly:) ⇒ Hash

Perform a SetAlert request

Parameters:

  • alert_id (Int)
  • ident (String)
  • origin (String)
  • destination (String)
  • aircrafttype (String)
  • date_start (Int)
  • date_end (Int)
  • channels (String)
  • enabled (Boolean)
  • max_weekly (Int)

Returns:

  • (Hash)

    A Hash containing a SetAlertResults response

See Also:


713
714
715
716
717
718
719
720
721
# File 'lib/flightxml/v2/operations.rb', line 713

def set_alert(alert_id:, ident:, origin:, destination:, aircrafttype:, date_start:, date_end:, channels:, enabled:, max_weekly:)
  command = Command.new(
    command: :SetAlert,
    result: Types::SetAlertResults,
    version: 2,
    parameters: {alert_id: alert_id, ident: ident, origin: origin, destination: destination, aircrafttype: aircrafttype, date_start: date_start, date_end: date_end, channels: channels, enabled: enabled, max_weekly: max_weekly}
  )
  perform_operation(command)
end

#set_maximum_result_size(max_size:) ⇒ Hash

Perform a SetMaximumResultSize request

Parameters:

  • max_size (Int)

Returns:

  • (Hash)

    A Hash containing a SetMaximumResultSizeResults response

See Also:


728
729
730
731
732
733
734
735
736
# File 'lib/flightxml/v2/operations.rb', line 728

def set_maximum_result_size(max_size:)
  command = Command.new(
    command: :SetMaximumResultSize,
    result: Types::SetMaximumResultSizeResults,
    version: 2,
    parameters: {max_size: max_size}
  )
  perform_operation(command)
end

#taf(airport:) ⇒ Hash

Perform a Taf request

Parameters:

  • airport (String)

Returns:

  • (Hash)

    A Hash containing a TafResults response

See Also:


743
744
745
746
747
748
749
750
751
# File 'lib/flightxml/v2/operations.rb', line 743

def taf(airport:)
  command = Command.new(
    command: :Taf,
    result: Types::TafResults,
    version: 2,
    parameters: {airport: airport}
  )
  perform_operation(command)
end

#tail_owner(ident:) ⇒ Hash

Perform a TailOwner request

Parameters:

  • ident (String)

Returns:

  • (Hash)

    A Hash containing a TailOwnerResults response

See Also:


758
759
760
761
762
763
764
765
766
# File 'lib/flightxml/v2/operations.rb', line 758

def tail_owner(ident:)
  command = Command.new(
    command: :TailOwner,
    result: Types::TailOwnerResults,
    version: 2,
    parameters: {ident: ident}
  )
  perform_operation(command)
end

#zipcode_info(zipcode:) ⇒ Hash

Perform a ZipcodeInfo request

Parameters:

  • zipcode (String)

Returns:

  • (Hash)

    A Hash containing a ZipcodeInfoResults response

See Also:


773
774
775
776
777
778
779
780
781
# File 'lib/flightxml/v2/operations.rb', line 773

def zipcode_info(zipcode:)
  command = Command.new(
    command: :ZipcodeInfo,
    result: Types::ZipcodeInfoResults,
    version: 2,
    parameters: {zipcode: zipcode}
  )
  perform_operation(command)
end