About Criteria

The criteria file contains request parameters for availability searches to populate the cache database. This file is used in two differnet modules. The main purpose of this file is to create requests to providers and filter the response before it is stored in the database. Additionally the database uses some of the criteria during the export.

The table below explains where each criteria is applied.

Criteria

Comment

Dl

Export

CityPairs

Destinations must be mapped in the HotelContent

Y

Y

Start/Stop Dates

Relative or absolute

Y

N

Stay

Stay duration in a hotel

Y

N

Max Hotels

deprecated

N

N

Include Hotels

not supported - anixe hotel codes

N

N

Exclude Hotels

not supported - anixe hotel codes

N

N

Min Hotel Category

Y

N

Room Types

e.g. SR, DR

Y

N

Meal Types

deprecated

N

N

Max Pkg Price

deprecated

N

N

Please take notice that the original criteria - Air tariff type, Max package price are not possible since the packaging is done in the database server directly.

Important

Criteria which are applied during download, and are not applied during export, mean, that changing the criteria will not immediately remove them from the next export. They will remain in the exports, until the hotel expires

The config file consists of following sections:

Data file format

Important

After changing the file, make sure it is a valid xml file! The format is not validated, but will result in the process failing silently

City-Pairs

Section containing definitions of city pairs which will be used to generate INFX file and querring hotel offers.

<city-pairs>
 <city-pair>ERFCDG</city-pair>
 <city-pair>BREPMI</city-pair>
</city-pairs>

Start and Stop Dates

Dates between which offers in INFX will be generated and hotels requested.

<start-iso-date>20090701</start-iso-date>
<stop-iso-date>20090915</stop-iso-date>

<start-relative-days>3</start-relative-days>
<stop-relative-days>60</stop-relative-days>

Number of days from defining relative span of time for Infx generation and hotel aquisition.

Stay Durations

Stay durations describe a number of days at the hotel.

<stay-durations>
 <stay-duration destinations="PMI">4</stay-duration>
 <stay-duration destinations="*">7</stay-duration>
</stay-durations>

Maximum Package Price

Maximum price of package in Infx (in EUR).

<max-package-price>500<max-package-price>

Not supported

  • This feature is currently not supported and will be ignored

Maximum Number of hotels

The maximum number of cheapest hotels at one TLC.

<max-hotels>200</max-hotels>

Not supported

  • This feature is currently not supported and will be ignored

Minimum Hotel Category

Minimum hotel category.

<min-hotel-category>2</min-hotel-category>

Please take notice, that changing this criteria, affects only newly downloaded hotels, it is not considered during export.

Explicitly Allowed Hotels

<allowed-hotel-codes>
 <allowed-hotel-code/>
</allowed-hotel-codes>

Not supported

  • This feature is currently not supported and will be ignored

Allowed Hotel Room Types

Currently unavailable.

<allowed-room-type-codes>
 <allowed-room-type-code/>
</allowed-room-type-codes>

Not supported

  • This feature is currently not supported and will be ignored

Allowed Meal Types

<allowed-meal-type-codes>
 <allowed-meal-type-code/>
</allowed-meal-type-codes>

Not supported

  • This feature is currently not supported and will be ignored

Excluded Hotels

<excluded-hotel-codes>
 <excluded-hotel-code/>
</excluded-hotel-codes>

Not supported

  • This feature is currently not supported and will be ignored

Hotel Room Types

Definition of hotel rooms that will be querried during hotel offers aquisition.

<rooms>
 <room type="SR" count="1" />
 <room type="TW" count="1" />
 <room type="DR" count="1" />
 <room type="TR" count="1" />
</rooms>

Sample criteria file attached. criteria.xml

Data/criteria.xml (last edited 2009-07-09 21:56:26 by TomaszMilewski)

UA-140066296-2