Skip to main content

DiversityUsage

The Diversity Customization feature allows you to have better influence over the diversity of your results , which means you need fewer queries to reach your desired results.

Following are examples of how you can use the Diversity Customization parameters:

Price and Travel Time Distribution

Results of this weighting can vary per market, and you should test various scenarios to determine what fits your business needs. For best results, it is recommended to add extreme values to see an effect on the options returned.

ClosedExample – Defining Weight for Price and Travel Time
  • PriceWeight – defines the importance of the price of the options (on a scale of 0 to 10).
  • TravelTimeWeight – defines the importance of travel time (on a scale of 0 to 10).

Diversity/Weightings@PriceWeight=”3”

Diversity/Weightings@TravelTimeWeight=”7”

ClosedExample – Request XML for Price and Travel Time

<DiversityParameters>

<Weightings PriceWeight="2"

TravelTimeWeight="8" />

</DiversityParameters>

ClosedExamples – Scenarios for Weightings for Price versus Travel Time

The customer can define 35 percent of results sets, which will appear within the mixture of the results set in the response.

  • Weightings PriceWeight – 10 and TravelTimeWeight – 0

    In this example, PriceWeight is most important, and the Bargain Finder Max result sets will include a mixture of the lowest fares and combinations of flight schedules that may include longer travel times.

  • Weightings PriceWeight – 0 and TravelTimeWeight – 10

    In this example, TravelTimeWeight is most important, and the Bargain Finder Max result sets will still include the lowest fares and combinations of flight schedules that may include shortest travel times.

  • Weightings PriceWeight – 8 and TravelTimeWeight – 2
  • Weightings PriceWeight – 2 and TravelTimeWeight – 8

The default is approximately: PriceWeight – 4 and TravelTimeWeight – 6 (control state)

Percentage Versus Number of Additional Nonstops

The request level parameter overrides the parameter in the rule, and the Number (AdditionalNonStopsNumber ) overrides Percentage (AdditionalNonStopsPercentage) when both parameters are in the request or both are included in the rule.

ClosedExample – Additional Nonstop Percentage

This example defines the percentage of nonstop options that should be returned in the response.

<TPA_Extensions>

<DiversityParameters AdditionalNonStopsPercentage=”25”/>

ClosedExample – Additional Nonstop Number

This example defines the number of additional nonstop options that should be added to the response.

<TPA_Extensions>

<AdditionalNonStopsNumber=”20”/>