Assign external URI for Kayak hotels.

Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
This commit is contained in:
Viktor Govako
2023-09-01 08:25:38 -03:00
committed by Konstantin Pastbin
parent e7c04c5459
commit 6368ba477f
16 changed files with 150 additions and 45 deletions

View File

@@ -94,7 +94,7 @@ void BookingDataset::BuildObject(Object const & hotel, FBuilderFnT const & fn) c
fb.SetCenter(mercator::FromLatLon(hotel.m_latLon.m_lat, hotel.m_latLon.m_lon));
/// @todo SRC_BOOKING
fb.SetHotelInfo(Metadata::SRC_KAYAK, hotel.m_id.Get(), hotel.m_ratingUser, hotel.m_priceCategory);
//fb.SetHotelInfo(Metadata::SRC_KAYAK, hotel.m_id.Get(), hotel.m_ratingUser, hotel.m_priceCategory);
auto & metadata = fb.GetMetadata();
metadata.Set(Metadata::FMD_WEBSITE, hotel.m_descUrl);
metadata.Set(Metadata::FMD_STARS, strings::to_string(hotel.m_stars));