Class: Amadeus::Namespaces::Travel::Analytics::AirTraffic::SearchedByDestination

Inherits:
Client::Decorator
  • Object
show all
Defined in:
lib/amadeus/namespaces/travel/analytics/air_traffic/searched_by_destination.rb

Overview

A namespaced client for the /v1/travel/analytics/air-traffic/searched_by_destination endpoints

Access via the Amadeus::Client object

amadeus = Amadeus::Client.new
amadeus.travel.analytics.air_traffic.searched_by_destination

Instance Method Summary collapse

Instance Method Details

#get(params = {}) ⇒ Amadeus::Response

Returns a list of air traffic reports, based on searches for a dedicated destination.

IATA code of the origin city -

e.g. NCE for Nice - required

IATA code of the destinaton city -

e.g. PAR for Paris - required

IATA code of the country from which the searches were made -

e.g. FR for France - required

are searching -

in YYYY-MM format - required

from Madrid to New-York in August 2017?

amadeus.travel.analytics.air_traffic.searched_by_destination.get(
   originCityCode: 'MAD',
   destinationCityCode: 'NYC',
   searchPeriod: '2017-08',
   marketCountryCode: 'ES'
 )

Examples:

How many people in Spain searched for a trip


Parameters:

  • params (Hash) (defaults to: {})

    a customizable set of options

Options Hash (params):

  • :originCityCode (String)
  • :destinationCityCode (String)
  • :marketCountryCode (String)
  • :searchPeriod (String)

    when consumers

Returns:

Raises:

  • (Amadeus::Base)

    an exception if the call failed



43
44
45
46
47
48
# File 'lib/amadeus/namespaces/travel/analytics/air_traffic/searched_by_destination.rb', line 43

def get(params = {})
  client.get(
    '/v1/travel/analytics/air-traffic/searched/by-destination',
    params
  )
end