iata 코드로 호텔 리스트 실제 데이터 예시
대부분의 정보가 결측치... test 용 api 키를 사용해서 결측치가 많이 나오는줄 알았지만
실제 production키를 발급받아 사용해도 똑같은 결과가 나옴...
물론 test키에 비해 호텔 리스트 수가 3배정도 많이 검색됨
인천(ICN)검색 | 인천(ICN)검색 | 런던(LON)검색 |
Hotel Details: Subtype: null Name: IBIS STYLES AMBASSADOR ICN APT Time Zone Name: null IATA Code: ICN Address: Category: null Lines: null Postal Code: null Country Code: KR City Name: null State Code: null Postal Box: null Text: null State: null GeoCode: Latitude: 37.48119 Longitude: 126.42015 Google Place ID: null OpenJet Airport ID: null UIC Code: null Hotel ID: RTICNIBS Chain Code: RT Distance: Unit: KM Value: 3.59 Display Value: null Is Unlimited: null Last Update: 2024-04-25T23:12:53 |
Hotel Details: Subtype: null Name: GRAND HYATT INCHEON Time Zone Name: null IATA Code: SEL Address: Category: null Lines: null Postal Code: null Country Code: KR City Name: null State Code: null Postal Box: null Text: null State: null GeoCode: Latitude: 37.44025 Longitude: 126.45638 Google Place ID: null OpenJet Airport ID: null UIC Code: null Hotel ID: HYSELINC Chain Code: HY Distance: Unit: KM Value: 1.99 Display Value: null Is Unlimited: null Last Update: 2024-04-02T06:47:19 |
Hotel Details: Subtype: null Name: MANDARIN ORIENTAL LONDON Time Zone Name: null IATA Code: LON Address: Category: null Lines: null Postal Code: null Country Code: GB City Name: null State Code: null Postal Box: null Text: null State: null GeoCode: Latitude: 51.50209 Longitude: -0.15989 Google Place ID: null OpenJet Airport ID: null UIC Code: null Hotel ID: MOLONHPK Chain Code: MO Distance: Unit: KM Value: 0.52 Display Value: null Is Unlimited: null Last Update: 2024-07-05T09:04:47 |
이 결과를 통해 저장할 수 있는 정보들 : Name : 호텔 이름 - string IATA Code : iata 코드- string Country Code : 국가 코드 - string GeoCode : 위도 경도 - double Hotel ID : 객실 정보 탐색을 위한 호텔 ID - string Value: 도시 중심으로 부터의 거리 (km) - double |
호텔 => 객실 offer 및 상세정보
역시 결측치가 많고 Description => text 와 몇몇 변수는 null 로 나오는 경우가 종종 있음..
호텔 api 중 무료 api 가 이것밖에 없어서 한탄스러움...
호텔 평점 | 호텔 객실 offer | 호텔 객실 offer 이어서 |
Hotel Sentiment: Hotel ID: DSLON437 Type: hotelSentiment Overall Rating: 93 Number of Reviews: 612 Sentiments: Staff: 100 Location: 100 Service: 94 Room Comforts: 98 Sleep Quality: 91 Swimming Pool: 0 Value for Money: 85 Facilities: 89 Catering: 90 Points of Interest: 79 |
Offers: Offer ID: JD8OL6IGV7 Check-in Date: 2024-08-12 Check-out Date: 2024-08-17 Room Type: C1Q Room Details: Type: C1Q Estimated Room Type: Category: STANDARD_ROOM Beds: 1 Bed Type: QUEEN Description: Language: EN Text: BEST FLEXIBLE RATE Double Room -17sqm 185sqf -Queen Bed -AC -Free Internet -LCD TV Chromecast -Sleeps 2 Individual Design -Rik Rak Amenities - Ensuite bathroom -Contemporary English style Guests: Adults: 2 Child Ages: null |
Changes: Start Date: 2024-08-12 End Date: 2024-08-14 Currency: null Selling Total: null Base: 350.00 Total: null Markups: null Start Date: 2024-08-14 End Date: 2024-08-17 Currency: null Selling Total: null Base: 400.00 Total: null Markups: null |
Hotel Offer Search Details: Type: hotel-offers Hotel: Type: hotel Hotel ID: DSLON437 Chain Code: DS Brand Code: null Dupe ID: 700095480 Name: Knightsbridge Hotel City Code: LON Latitude: 51.49822 Longitude: -0.16435 Available: true |
Price: Currency: GBP Selling Total: null Total: 2280.00 Base: null Taxes: N/A Markups: null Variations: Average: Currency: null Selling Total: null Total: null Base: 380.00 Markups: null |
Policies: Payment Type: guarantee Guarantee: Description: N/A Accepted Payments: Credit Cards: [AX, CA, VI, EC] Method: null Deposit: N/A Prepay: N/A Hold Time: N/A Cancellation: N/A Check-In/Out: N/A Self: https://api.amadeus.com/v3/shopping/hotel-offers/JD8OL6IGV7 Self: https://api.amadeus.com/v3/shopping/hotel-offers?hotelIds=DSLON437&adults=2&checkInDate=2024-08-12&checkOutDate=2024-08-17&paymentPolicy=NONE&roomQuantity=1 |
중복되는 정보와 결측치만 나오는 데이터들을 제거하고 필요한 컬럼만을 선별 호텔 감성 정보 (Hotel Sentiment) 전체 점수(Overall Rating) - int 직원 친절도 점수 (Staff) - int 위치 점수(Location) - int 서비스 점수 (Service) - int 객실 편안함 점수 (Room Comforts) - int 수면 품질 점수 (Sleep Quality) - int 수영장 점수 (Swimming Pool) - int 가성비 점수 (Value for Money) - int 시설 점수 (Facilities) - int 식사 점수 (Catering) - int 주변 관광 명소 접근성 점수 (Points of Interest) - int 호텔 오퍼 검색 세부 사항 (Hotel Offer Search Details) 호텔 ID (Hotel ID) - string 숙박 유형 (Hotel Type) - string 이름 (Name) - string 예약 가능 여부 (Available) - boolean 오퍼 세부 사항 (Offer Details) 오퍼 ID (Offer ID) - string 체크인 날짜 (Check-in Date) - date 체크아웃 날짜 (Check-out Date) - date 객실 세부 사항 (Room Details) - string 카테고리 (Category) - string 침대 개수 (Beds) - int 침대 유형 (Bed Type) - string 텍스트 (Text) - string 투숙객 정보 (Guest Information) 성인 수 (Adults) - int 가격 정보 (Price Information) 통화 (Currency) - string 총액 (Total) - int 1박당 가격 (Average Price) - int 정책 정보 (Policy Information) 결제 유형 (Payment Type) - string 수락된 결제 수단 (Accepted Payments) - string[] |
이미지도 이제 제공 안해준다고 함...
크롤링을 통해 이미지를 가져와야 하는데
호텔 이름만으로 찾기엔 중복되는 호텔 이름이 많음
결국 GPS 좌표를 이용해 해당 위치의 호텔을 검색해서 이미지를 가져오는 방법밖에 없는거 같음..
'2024 웹' 카테고리의 다른 글
spring security CSRF 보안 설정 (0) | 2024.08.02 |
---|---|
use case, flow chart 차이, AES 암호화, RSA 암호화 (0) | 2024.08.02 |
spring security (0) | 2024.06.11 |
1차 프로젝트 - 찾아감(분실물 통합검색 사이트) (0) | 2024.06.10 |
프로젝트 기반 지식 (0) | 2024.05.16 |
댓글