Last Minute Import Specification 1.3 2003 Reseguiden Interactive AB For further technical information, please contact: Torbjörn Andersson Tel: +46 (0)31 774 39 39 torbjorn.andersson@reseguiden.se
Content Content... 2 1 File format... 3 1.1 Separators...3 1.2 Data types...3 1.3 File description header...3 1.4 Scheduling...3 2 Mandatory files... 4 2.1 Last Minute File...4 3 Optional files... 4 4 Lists 5 4.1 Interest...5 4.2 Currency...5-2 (6) -
1 File format Encoding: 8-bit ASCII (ISO-8859-1). 1.1 Separators Field separator: Tab character: \t. (char(9)) Row separator: Line Feed or Carriage Return + Line Feed: \n or \r\n. (char(10) or char(13)char(10)) 1.2 Data types Values that are NULL must NOT have any characters between the field separators. String (varchar, char, date, text) must be enclosed with double quotes i.e. string. The size limits for varchar and char are given in the data type column. The data type text has no size limit. Date strings must follow the format YYYY-MM-DD i.e. 2003-04-29. Any double quote that is part of the string itself must be represented by two double quotes e.g. Baggage size is restricted to 10 X12 X5 for all pieces must be sent as Baggage size is restricted to 10 X12 X5 for all pieces. Numeric value: The separator for decimal digits is a full stop i.e. 3.5. Array: The values of an array must be comma-separated and be enclosed with double quotes i.e. 1,3,5,67 or MAN,LON,PAR. The order of the values is not relevant. 1.3 File description header No Name Data type Mand. Description The columns No and Name are for reference only. Date type is given as SQL-data types and detailed at 1.2 Date types above. Mand. indicates whether the field must contain valid data or not. Commonly only yes or no is given but if a number is given, the explanation will be found under the table. Description tries to indicate what kind of information the field should be used for as well as sometimes give examples. Each file description refers to one complete row of the file in question. A mandatory field must contain valid data. A row must have the correct number of fields. An empty field must NOT have any characters between the field separators. The row will be discarded unless all of the above conditions are fulfilled. 1.4 Scheduling The scheduling of import jobs is done at http://www.reseguiden.se/trips. Contact support@reseguiden.se if you need help with logging in or scheduling your imports. - 3 (6) -
2 Mandatory files 2.1 Last Minute File This file contains all information needed to publish a last-minute offer at reseguiden.se. The contents of this file will replace all previously published last-minute offers. The recommended name for the file is last_minute.txt. The description below refers to one complete row in the file. No Field Data type Mand. Description 1 Date Date YES Departure date, e.g. 2004-12-24 2 Destination Varchar(50) YES Destination, e.g. Lanzarote 3 Destination_Airport Char(3) No(1) IATA-code for nearest international airport. 4 Departure_code Varchar(3) YES IATA-code for departure city, e.g. STO 5 Duration Smallint YES Duration (in days) of the stay, e.g. 7 6 Price Decimal YES Price, e.g. 995.90 7 Currency_code Char(3) YES Currency code for the price, e.g. SEK. See 4 lists 8 Info Varchar(100) No Price information, e.g. Endast flyg or Ospecificerat. 9 Booking_URL Varchar(600) No URL for booking engine 10 Interest ARRAY No Interests relevant for the destination. E.g. 2,7,3. See 4 Lists. 11 Category Char(1) No V =Winter, Alpine, S =Summer, Sun & Beach NB 1. Mandatory if not the same as 2. Destination 3 Optional files Currently there are no optional files for Last Minute. - 4 (6) -
4 Lists These lists are intended to facilitate translation between corresponding features on the source system and the ones in use at Reseguiden. 4.1 Interest ID Interest 1 Golf 2 Skidåkning (Skiing) 3 Sport & Motor 4 Underhållning (Entertainment) 5 Konst & Hantverk (Art & Craft) 6 Kultur & Historia (Culture & History) 7 Mat & Dryck (Food & Drink) 8 Hälsa (Health & Spa) 9 Shopping 10 Sol & Bad (Sun & Bath) 11 Storstad (Metropolis) 12 Äventyr & Friluft (Adventure & Outdoor activities) 13 Djur & Natur (Animals & Nature) 14 Språk & Studier (Language & Studies) 16 Barnaktiviteter (Activities for children) 17 Kryssning, Båt (Cruise) 4.2 Currency Code AED ARS AUD BBD BGN BHD BRL BSD CAD CHF CLP CNY CYP CZK DKK Currency Arabiska Dirham Argentinska Nya Peso Australienska Dollar Barbados Dollar Bulgariska Lev Bahreinska Dinar Brasilianska Real Bahamas Dollar Kanadensiska Dollar Schweiziska Francs Chilenska Peso Kinesiska Yuan Cypriotiska Pund Tjeckiska Koruna Danska Kronor - 5 (6) -
DOP EEK EGP EUR FJD GBP GMD HKD HRK HUF IDR ILS INR ISK JOD JPY KES KRW KWD LKR LTL LVL MTL MUR MXN MYR NOK NZD PHP PLN RUB SAR SEK SGD SIT SKK THB TRL TTD TWD USD ZAR Dominikanska Peso Oro Estniska Kroon Egyptiska Pund Euro Fiji Dollar Brittiska Pund Gambianska Dalasi Hongkong Dollar Kroatiska Kuna Ungerska Forint Indonesiska Rupiah Israeliska NewSheqel Indiska Rupee Isländska Kronur Jordanska Dinar Japanska Yen Kenyanska Shilling Koreanska Won Kuwaitiska Dinar Sri Lankanska Rupee Litauiska Litas Lettiska Lats Maltesiska Lira Mauritius Rupee Mexicanska Peso Malaysiska Ringgit Norska Kroner Nya Zeeländska Dollar Filipinska Peso Polska NewZloty Ryska Rubel Saudiarabiska Riyal Svenska Kronor Singapore Dollar Slovenska Tolar Slovakiska Koruna Thailändska Baht Turkiska Lira Trinidad + Tobago Dollar Taiwanesiska New Dollar Amerikanska Dollar Sydafrikanska Rand - 6 (6) -