GET api/hotel/info?hotelcode={hotelcode}&lang={lang}
查询酒店基本信息
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
hotelcode |
酒店编码 |
string |
Required |
lang |
语言代码 |
string |
Default value is zh-HK |
Body Parameters
None.
Response Information
Resource Description
查询酒店基本信息
ReturnResultOfHotelDescriptiveInfoResponseName | Description | Type | Additional information |
---|---|---|---|
data | HotelDescriptiveInfoResponse |
None. |
|
code |
状态码:100成功,其他自定义 |
integer |
None. |
message |
提示消息 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "data": { "<HotelDescriptiveContent>k__BackingField": [ { "<HotelCode>k__BackingField": "sample string 1", "<HotelCityCode>k__BackingField": "sample string 2", "<HotelCodeContext>k__BackingField": "sample string 3", "<HotelInfo>k__BackingField": { "<HotelName>k__BackingField": "sample string 1", "<position>k__BackingField": { "<Latitude>k__BackingField": 1.1, "<Longitude>k__BackingField": 2.1 } }, "<AffiliationInfo>k__BackingField": { "<Awards>k__BackingField": [ { "<Rating>k__BackingField": "sample string 1" }, { "<Rating>k__BackingField": "sample string 1" } ] }, "<MultimediaDescription>k__BackingField": [ { "<ImageItems>k__BackingField": [ { "<ImageFormat>k__BackingField": [ { "<Title>k__BackingField": "sample string 1", "<Width>k__BackingField": "sample string 2", "<Height>k__BackingField": "sample string 3", "<URL>k__BackingField": "sample string 4" }, { "<Title>k__BackingField": "sample string 1", "<Width>k__BackingField": "sample string 2", "<Height>k__BackingField": "sample string 3", "<URL>k__BackingField": "sample string 4" } ] }, { "<ImageFormat>k__BackingField": [ { "<Title>k__BackingField": "sample string 1", "<Width>k__BackingField": "sample string 2", "<Height>k__BackingField": "sample string 3", "<URL>k__BackingField": "sample string 4" }, { "<Title>k__BackingField": "sample string 1", "<Width>k__BackingField": "sample string 2", "<Height>k__BackingField": "sample string 3", "<URL>k__BackingField": "sample string 4" } ] } ], "<TextItems>k__BackingField": [ { "<Title>k__BackingField": "sample string 1", "<Category>k__BackingField": "sample string 2", "<Description>k__BackingField": "sample string 3" }, { "<Title>k__BackingField": "sample string 1", "<Category>k__BackingField": "sample string 2", "<Description>k__BackingField": "sample string 3" } ] }, { "<ImageItems>k__BackingField": [ { "<ImageFormat>k__BackingField": [ { "<Title>k__BackingField": "sample string 1", "<Width>k__BackingField": "sample string 2", "<Height>k__BackingField": "sample string 3", "<URL>k__BackingField": "sample string 4" }, { "<Title>k__BackingField": "sample string 1", "<Width>k__BackingField": "sample string 2", "<Height>k__BackingField": "sample string 3", "<URL>k__BackingField": "sample string 4" } ] }, { "<ImageFormat>k__BackingField": [ { "<Title>k__BackingField": "sample string 1", "<Width>k__BackingField": "sample string 2", "<Height>k__BackingField": "sample string 3", "<URL>k__BackingField": "sample string 4" }, { "<Title>k__BackingField": "sample string 1", "<Width>k__BackingField": "sample string 2", "<Height>k__BackingField": "sample string 3", "<URL>k__BackingField": "sample string 4" } ] } ], "<TextItems>k__BackingField": [ { "<Title>k__BackingField": "sample string 1", "<Category>k__BackingField": "sample string 2", "<Description>k__BackingField": "sample string 3" }, { "<Title>k__BackingField": "sample string 1", "<Category>k__BackingField": "sample string 2", "<Description>k__BackingField": "sample string 3" } ] } ], "<ContactInfo>k__BackingField": [ { "<Addresses>k__BackingField": [ { "<FormattedInd>k__BackingField": true, "<StreetNmbr>k__BackingField": "sample string 2", "<AddressLine>k__BackingField": [ "sample string 1", "sample string 2" ], "<CityName>k__BackingField": "sample string 3", "<PostalCode>k__BackingField": "sample string 4", "<CountryName>k__BackingField": "sample string 5" }, { "<FormattedInd>k__BackingField": true, "<StreetNmbr>k__BackingField": "sample string 2", "<AddressLine>k__BackingField": [ "sample string 1", "sample string 2" ], "<CityName>k__BackingField": "sample string 3", "<PostalCode>k__BackingField": "sample string 4", "<CountryName>k__BackingField": "sample string 5" } ], "<Phones>k__BackingField": { "<Phone>k__BackingField": [ { "PhoneTechType": "sample string 1", "PhoneNumber": "sample string 2" }, { "PhoneTechType": "sample string 1", "PhoneNumber": "sample string 2" } ] }, "<URLs>k__BackingField": { "<URL>k__BackingField": [ "sample string 1", "sample string 2" ] } }, { "<Addresses>k__BackingField": [ { "<FormattedInd>k__BackingField": true, "<StreetNmbr>k__BackingField": "sample string 2", "<AddressLine>k__BackingField": [ "sample string 1", "sample string 2" ], "<CityName>k__BackingField": "sample string 3", "<PostalCode>k__BackingField": "sample string 4", "<CountryName>k__BackingField": "sample string 5" }, { "<FormattedInd>k__BackingField": true, "<StreetNmbr>k__BackingField": "sample string 2", "<AddressLine>k__BackingField": [ "sample string 1", "sample string 2" ], "<CityName>k__BackingField": "sample string 3", "<PostalCode>k__BackingField": "sample string 4", "<CountryName>k__BackingField": "sample string 5" } ], "<Phones>k__BackingField": { "<Phone>k__BackingField": [ { "PhoneTechType": "sample string 1", "PhoneNumber": "sample string 2" }, { "PhoneTechType": "sample string 1", "PhoneNumber": "sample string 2" } ] }, "<URLs>k__BackingField": { "<URL>k__BackingField": [ "sample string 1", "sample string 2" ] } } ], "<TPA_Extensions>k__BackingField": { "<District>k__BackingField": "sample string 1", "<HotelAmenities>k__BackingField": { "Service": [ { "<Code>k__BackingField": "sample string 1", "<Service>k__BackingField": "sample string 2" }, { "<Code>k__BackingField": "sample string 1", "<Service>k__BackingField": "sample string 2" } ] }, "<RoomAmenities>k__BackingField": { "Service": [ { "<Code>k__BackingField": "sample string 1", "<Service>k__BackingField": "sample string 2" }, { "<Code>k__BackingField": "sample string 1", "<Service>k__BackingField": "sample string 2" } ] }, "<HotelNameZhCn>k__BackingField": "sample string 2", "<HotelAddressZhCn>k__BackingField": { "<AddressLine>k__BackingField": [ "sample string 1", "sample string 2" ] }, "<LocationDescriptionZhCn>k__BackingField": "sample string 3", "<HotelDescriptionZhCn>k__BackingField": "sample string 4", "<HotelNameZhTw>k__BackingField": "sample string 5", "<HotelAddressZhTw>k__BackingField": { "<AddressLine>k__BackingField": [ "sample string 1", "sample string 2" ] }, "<LocationDescriptionZhTw>k__BackingField": "sample string 6", "<HotelDescriptionZhTw>k__BackingField": "sample string 7" } }, { "<HotelCode>k__BackingField": "sample string 1", "<HotelCityCode>k__BackingField": "sample string 2", "<HotelCodeContext>k__BackingField": "sample string 3", "<HotelInfo>k__BackingField": { "<HotelName>k__BackingField": "sample string 1", "<position>k__BackingField": { "<Latitude>k__BackingField": 1.1, "<Longitude>k__BackingField": 2.1 } }, "<AffiliationInfo>k__BackingField": { "<Awards>k__BackingField": [ { "<Rating>k__BackingField": "sample string 1" }, { "<Rating>k__BackingField": "sample string 1" } ] }, "<MultimediaDescription>k__BackingField": [ { "<ImageItems>k__BackingField": [ { "<ImageFormat>k__BackingField": [ { "<Title>k__BackingField": "sample string 1", "<Width>k__BackingField": "sample string 2", "<Height>k__BackingField": "sample string 3", "<URL>k__BackingField": "sample string 4" }, { "<Title>k__BackingField": "sample string 1", "<Width>k__BackingField": "sample string 2", "<Height>k__BackingField": "sample string 3", "<URL>k__BackingField": "sample string 4" } ] }, { "<ImageFormat>k__BackingField": [ { "<Title>k__BackingField": "sample string 1", "<Width>k__BackingField": "sample string 2", "<Height>k__BackingField": "sample string 3", "<URL>k__BackingField": "sample string 4" }, { "<Title>k__BackingField": "sample string 1", "<Width>k__BackingField": "sample string 2", "<Height>k__BackingField": "sample string 3", "<URL>k__BackingField": "sample string 4" } ] } ], "<TextItems>k__BackingField": [ { "<Title>k__BackingField": "sample string 1", "<Category>k__BackingField": "sample string 2", "<Description>k__BackingField": "sample string 3" }, { "<Title>k__BackingField": "sample string 1", "<Category>k__BackingField": "sample string 2", "<Description>k__BackingField": "sample string 3" } ] }, { "<ImageItems>k__BackingField": [ { "<ImageFormat>k__BackingField": [ { "<Title>k__BackingField": "sample string 1", "<Width>k__BackingField": "sample string 2", "<Height>k__BackingField": "sample string 3", "<URL>k__BackingField": "sample string 4" }, { "<Title>k__BackingField": "sample string 1", "<Width>k__BackingField": "sample string 2", "<Height>k__BackingField": "sample string 3", "<URL>k__BackingField": "sample string 4" } ] }, { "<ImageFormat>k__BackingField": [ { "<Title>k__BackingField": "sample string 1", "<Width>k__BackingField": "sample string 2", "<Height>k__BackingField": "sample string 3", "<URL>k__BackingField": "sample string 4" }, { "<Title>k__BackingField": "sample string 1", "<Width>k__BackingField": "sample string 2", "<Height>k__BackingField": "sample string 3", "<URL>k__BackingField": "sample string 4" } ] } ], "<TextItems>k__BackingField": [ { "<Title>k__BackingField": "sample string 1", "<Category>k__BackingField": "sample string 2", "<Description>k__BackingField": "sample string 3" }, { "<Title>k__BackingField": "sample string 1", "<Category>k__BackingField": "sample string 2", "<Description>k__BackingField": "sample string 3" } ] } ], "<ContactInfo>k__BackingField": [ { "<Addresses>k__BackingField": [ { "<FormattedInd>k__BackingField": true, "<StreetNmbr>k__BackingField": "sample string 2", "<AddressLine>k__BackingField": [ "sample string 1", "sample string 2" ], "<CityName>k__BackingField": "sample string 3", "<PostalCode>k__BackingField": "sample string 4", "<CountryName>k__BackingField": "sample string 5" }, { "<FormattedInd>k__BackingField": true, "<StreetNmbr>k__BackingField": "sample string 2", "<AddressLine>k__BackingField": [ "sample string 1", "sample string 2" ], "<CityName>k__BackingField": "sample string 3", "<PostalCode>k__BackingField": "sample string 4", "<CountryName>k__BackingField": "sample string 5" } ], "<Phones>k__BackingField": { "<Phone>k__BackingField": [ { "PhoneTechType": "sample string 1", "PhoneNumber": "sample string 2" }, { "PhoneTechType": "sample string 1", "PhoneNumber": "sample string 2" } ] }, "<URLs>k__BackingField": { "<URL>k__BackingField": [ "sample string 1", "sample string 2" ] } }, { "<Addresses>k__BackingField": [ { "<FormattedInd>k__BackingField": true, "<StreetNmbr>k__BackingField": "sample string 2", "<AddressLine>k__BackingField": [ "sample string 1", "sample string 2" ], "<CityName>k__BackingField": "sample string 3", "<PostalCode>k__BackingField": "sample string 4", "<CountryName>k__BackingField": "sample string 5" }, { "<FormattedInd>k__BackingField": true, "<StreetNmbr>k__BackingField": "sample string 2", "<AddressLine>k__BackingField": [ "sample string 1", "sample string 2" ], "<CityName>k__BackingField": "sample string 3", "<PostalCode>k__BackingField": "sample string 4", "<CountryName>k__BackingField": "sample string 5" } ], "<Phones>k__BackingField": { "<Phone>k__BackingField": [ { "PhoneTechType": "sample string 1", "PhoneNumber": "sample string 2" }, { "PhoneTechType": "sample string 1", "PhoneNumber": "sample string 2" } ] }, "<URLs>k__BackingField": { "<URL>k__BackingField": [ "sample string 1", "sample string 2" ] } } ], "<TPA_Extensions>k__BackingField": { "<District>k__BackingField": "sample string 1", "<HotelAmenities>k__BackingField": { "Service": [ { "<Code>k__BackingField": "sample string 1", "<Service>k__BackingField": "sample string 2" }, { "<Code>k__BackingField": "sample string 1", "<Service>k__BackingField": "sample string 2" } ] }, "<RoomAmenities>k__BackingField": { "Service": [ { "<Code>k__BackingField": "sample string 1", "<Service>k__BackingField": "sample string 2" }, { "<Code>k__BackingField": "sample string 1", "<Service>k__BackingField": "sample string 2" } ] }, "<HotelNameZhCn>k__BackingField": "sample string 2", "<HotelAddressZhCn>k__BackingField": { "<AddressLine>k__BackingField": [ "sample string 1", "sample string 2" ] }, "<LocationDescriptionZhCn>k__BackingField": "sample string 3", "<HotelDescriptionZhCn>k__BackingField": "sample string 4", "<HotelNameZhTw>k__BackingField": "sample string 5", "<HotelAddressZhTw>k__BackingField": { "<AddressLine>k__BackingField": [ "sample string 1", "sample string 2" ] }, "<LocationDescriptionZhTw>k__BackingField": "sample string 6", "<HotelDescriptionZhTw>k__BackingField": "sample string 7" } } ], "<Success>k__BackingField": "sample string 1", "<Errors>k__BackingField": { "<error>k__BackingField": "sample string 1" }, "<error>k__BackingField": { "ErrorDescription": "sample string 1" } }, "code": 1, "message": "sample string 2" }