预订宝/getHotelSummaryList

来自站长百科
跳转至: 导航、​ 搜索

预订宝 | 系统设置 | 后台管理 |二次开发

getHotelSummaryList概述[ ]

  • 接口地址:http://api.yudingbao.net/v1.0/hotel/search.ashx?act=getHotelSummaryList
  • 动作标识:getHotelSummaryList
  • 参数:见参数说明
  • 请求方式:GET
  • 响应模式:JSONJSONPXML

注意:动作标识是大小写敏感的,请养成良好的编码习惯!

参数说明[ ]

参数名称 参数类型 说明
1 cityId string 城市编号。可以同时指定1-20个城市。
19 maxHotelCount int 每城市返回的酒店数量,最多为30个,默认为10个。
21 includeNonBooking bool 指示响应结果是否应当包含不可预订的酒店或房间。
该参数是可选的。默认为true。
22 includeGuaranteeable bool 指示响应结果是否应当包含需要担保才能入住的酒店或房间。
该参数是可选的。默认为true。

注意:无论指定何种排序方式,搜索结果总会将满房率最高的酒店排在后面。

数据格式[ ]

  • 响应头:
    • Status:0为正常,非0表示处理请求时发生异常,通常是参数校验错误;
    • Messages:当Status为非0时该字段肯定包含一条或多条消息文本;
  • 响应体:
    • 酒店信息中可能出现以下几个置换符,调用数据时应当做相应处理:
替代符标签 说明
1 {$Website.Domain$} 应当替换为您自己网站的域名。
2 {$Website.Name$} 应当替换为您自己的网站名。
    • 本接口输出的响应体包含分页数据、酒店列表数据和地标数据;
    • 分页数据包含以下内容:
  1. TotalItemCount:符合当前查询条件的项目总数;
  2. TotalPageCount:分页总数,即最大页码;
  3. PageSize:页面大小,即每页显示多少项目;
  4. PageIndex:当前页码;
  5. SortType:排序方式,请参考上一节中的参数说明。
    • 酒店列表是一个数组,关于酒店的数据格式请参考酒店基础信息;
    • 地标数据仅当用户按地图搜索时有效:
  1. Landmark:查询时使用的地标名;
  2. Lng:查询时使用的经度值;
  3. Lat:查询时使用的纬度值;
  4. Radius:查询时使用的查询半径,以米为单位;
    • 下面表格说明了房价排期数据的格式:
参数名称 参数类型 说明
本表格介绍的是“HotelSummaries.item”节点的数据格式。
1 CityCode string 城市编号。
2 CityName string 城市名称。
3 CityPinyin string 城市拼音
4 Hotels array 酒店信息。
5 1 Code string 酒店编号。
2 Name string 酒店名称。
3 Category 酒店星级。
酒店星级的数字定义如下:
0 —— 未评星
1 —— 一星级
2 —— 二星级
3 —— 三星级
4 —— 四星级
5 —— 五星级
4 Description string 酒店简介。
5 Thumbnail string 酒店缩略图(小图)。
6 Photo string 酒店照片(大图)。
7 Room array 酒店房型,这里仅列出最优惠的1个房型。
1 TypeId string 房型编号。
2 Name string 房型名称。
3 Broadband int 宽带服务。带服务参数的定义如下:
0 —— 不限制。
1 —— 收费。提供上网服务,但要收费。
2 —— 免费。免费提供上网服务。
4 RatePlan array 房型价格排期,这里仅列出该房型的第1个排期。
入住区间为:明天至大后天。
5 1 _id int 价格排期编号。
2 Name string 价格排期别名。
3 TotalPrice double 总价。
4 LowestPrice double 最低价。
5 HighestPrice double 最高价。
6 AveragePrice double 均价。
7 NonBookingPercentage double 满房率。
8 IsGuaranteeable bool 指示当前房价排期是否需要担保。
    • 在搜索结果数据中还包含了一个Message属性,该属性没有特定作用,可以忽略。

注意:本接口的XML响应体的酒店数据之下的Landmarks节点的内容带有命名空间,解析时请注意!

对于数据格式的理解,请参考下列示例代码中的XML响应演示,其中每个字段都标注了数据类型(日期类型在XML响应中统一使用GMT格式,但被标注为string,请开发者注意)。

示例代码[ ]

以下示例代码是通过HTML表单实现了该接口的部分操作,您在开发过程中应当使用自己的平台语言来模拟这些操作以捕获响应体,然后对响应体做出相应的操作。

请求示例

<!--
    这是该接口的请求示例,该接口的访问类同于如下表单的提交,
     
    请注意:该表单使用控件的方法模拟了GET请求
-->
<form id="myForm" method="get" action="http://api.yudingbao.net/v1.0/hotel/search.ashx" target="_blank">
    <p>
        <!--动作标识,注意动作标识是大小写敏感的-->
        <input id="act" name="act" value="getHotelSummaryList" type="text" />
    </p>
    <p>
        <!--城市编号,0101是北京的编号-->
        <input id="cityId01" name="cityId" value="0101" type="text">
        <input id="cityId02" name="cityId" value="0201" type="text">
        <!--入住日期-->
        <input id="maxHotelCount" name="maxHotelCount" value="3" type="text">
    </p>
    <p>
        <!--指定响应格式为XML,这里以XML为例-->
        <input id="format" name="format" value="xml" type="text" />
        <!--指定响应体应当是已格式化的,便于阅读代码,在生产环境中应当将该值设置为false-->
        <input id="indent" name="indent" value="true" type="text" />
        <!--产品编号。在我的账户-分销产品的应用列表中可以找到该参数的值。-->
        <input id="aid" name="aid" value="78663" type="text" />
        <!--接口密钥。在我的账户-分销产品的应用列表中可以找到该参数的值。-->
        <input id="key" name="key" value="0925ed633d24577eb3ffe13f00c55a4f9739f51a77eefb1dba29bb9568acddfd" type="text" />
         
        <!--应用程序授权编号及公钥,这是可选的-->
        <input id="sid" name="sid" value="" type="text">      
        <input id="sKey" name="sKey" value="" type="text">
    </p>
    <p>
        <input id="submit" name="submit" value="提交" type="submit">
    </p>
</form>


XML响应

<!--XML响应,响应体过大,已删节-->
<?xml version="1.0" encoding="utf-8"?>
<HttpResponse>
    <Status type="number">0</Status>
    <Messages type="array">
        <item type="string">本操作占用服务器资源较多,建议您做本地缓存,缓存时间可设置为8小时以上。</item>
    </Messages>
    <ResponseBody type="object">
        <HotelSummaries type="array">
            <item type="object">
                <CityCode type="string">0101</CityCode>
                <CityName type="string">北京</CityName>
                <CityPinyin type="string">
                </CityPinyin>
                <Hotels type="array">
                    <item type="object">
                        <Code type="string">h010t10101047</Code>
                        <Name type="string">北京忘归宾馆(十八里店)</Name>
                        <Category type="number">2</Category>
                        <Description type="string">酒店开业时间2004年5月18日,新近装修时间2008年2月1日,楼高2 层,共有客房总数110间(套),标间面积20平米。</Description>
                        <Thumbnail type="string">http://static.yudingbao.net/images/hotel/a/28/10101047_1_5_0_1.jpg</Thumbnail>
                        <Photo type="string">http://static.yudingbao.net/images/hotel/a/28/10101047_0_5_0_1.jpg</Photo>
                        <Room type="object">
                            <TypeId type="string">1017</TypeId>
                            <Name type="string">标准间</Name>
                            <Broadband type="number">1</Broadband>
                            <RatePlan type="object">
                                <_id type="number">16677</_id>
                                <Name type="string">不含早</Name>
                                <TotalPrice type="number">300.0</TotalPrice>
                                <LowestPrice type="number">150.0</LowestPrice>
                                <HighestPrice type="number">150.0</HighestPrice>
                                <AveragePrice type="number">150.0</AveragePrice>
                                <NonBookingPercentage type="number">0.0</NonBookingPercentage>
                                <IsGuaranteeable type="boolean">false</IsGuaranteeable>
                            </RatePlan>
                        </Room>
                    </item>
                    <item type="object">
                        <Code type="string">h010t10101039</Code>
                        <Name type="string">北京神舟商旅酒店(芍药居店)</Name>
                        <Category type="number">0</Category>
                        <Description type="string">酒店开业时间2008年5月,楼高5层,客房总数178间(套)。</Description>
                        <Thumbnail type="string">http://static.yudingbao.net/images/hotel/a/27/10101039_1_5_0_1.jpg</Thumbnail>
                        <Photo type="string">http://static.yudingbao.net/images/hotel/a/27/10101039_0_0_0_1.jpg</Photo>
                        <Room type="object">
                            <TypeId type="string">1018</TypeId>
                            <Name type="string">大床房</Name>
                            <Broadband type="number">1</Broadband>
                            <RatePlan type="object">
                                <_id type="number">17090</_id>
                                <Name type="string">不含早</Name>
                                <TotalPrice type="number">547.0</TotalPrice>
                                <LowestPrice type="number">249.0</LowestPrice>
                                <HighestPrice type="number">298.0</HighestPrice>
                                <AveragePrice type="number">273.5</AveragePrice>
                                <NonBookingPercentage type="number">0.0</NonBookingPercentage>
                                <IsGuaranteeable type="boolean">false</IsGuaranteeable>
                            </RatePlan>
                        </Room>
                    </item>
                    <item type="object">
                        <Code type="string">h010t10101037</Code>
                        <Name type="string">北京凤龙青年酒店</Name>
                        <Category type="number">3</Category>
                        <Description type="string">酒店开业时间1997年,新近装修时间2007年10月,主楼高5层,附楼高1层,客房总数160间(套)。</Description>
                        <Thumbnail type="string">http://static.yudingbao.net/images/hotel/a/26/10101037_1_10_0_1.jpg</Thumbnail>
                        <Photo type="string">http://static.yudingbao.net/images/hotel/a/26/10101037_0_0_0_1.jpg</Photo>
                        <Room type="object">
                            <TypeId type="string">1018</TypeId>
                            <Name type="string">标准间B</Name>
                            <Broadband type="number">1</Broadband>
                            <RatePlan type="object">
                                <_id type="number">15477</_id>
                                <Name type="string">不含早</Name>
                                <TotalPrice type="number">356.0</TotalPrice>
                                <LowestPrice type="number">178.0</LowestPrice>
                                <HighestPrice type="number">178.0</HighestPrice>
                                <AveragePrice type="number">178.0</AveragePrice>
                                <NonBookingPercentage type="number">0.0</NonBookingPercentage>
                                <IsGuaranteeable type="boolean">false</IsGuaranteeable>
                            </RatePlan>
                        </Room>
                    </item>
                </Hotels>
            </item>
            <item type="object">
                <CityCode type="string">0201</CityCode>
                <CityName type="string">上海</CityName>
                <CityPinyin type="string">
                </CityPinyin>
                <Hotels type="array">
                    <item type="object">
                        <Code type="string">h010t50201292</Code>
                        <Name type="string">维也纳国际酒店(上海欢乐谷店)</Name>
                        <Category type="number">3</Category>
                        <Description type="string">维也纳国际酒店(上海欢乐谷店)是维也纳酒店集团旗下33家商务连锁酒店之一,
装修风格融入欧陆风情,充满了欧化、艺术、经典、温馨的异风情调,其环保、艺术、安全、助眠、舒适、美食的经营特色,
在业内同类酒店中脱颖而出,真正让您花钱不多,很有面子,超越您的期待。2008年8月开业;维也纳国际酒店(上海欢乐谷店)
占地近3万平方米,设有标准房,豪华房,行政套房458间。并设有中西自助餐,休闲中心、会议室、商务中心及大型停车场配套,
是集商务、住宿、休闲、餐饮、娱乐为一体的豪华精品商务酒店。</Description>
                        <Thumbnail type="string">http://static.yudingbao.net/images/hotel/a/33/50201292_1_5_0_2.jpg</Thumbnail>
                        <Photo type="string">http://static.yudingbao.net/images/hotel/a/33/50201292_0_5_0_2.jpg</Photo>
                        <Room type="object">
                            <TypeId type="string">0001</TypeId>
                            <Name type="string">标准单人房</Name>
                            <Broadband type="number">1</Broadband>
                            <RatePlan type="object">
                                <_id type="number">9064</_id>
                                <Name type="string">不含早</Name>
                                <TotalPrice type="number">436.0</TotalPrice>
                                <LowestPrice type="number">218.0</LowestPrice>
                                <HighestPrice type="number">218.0</HighestPrice>
                                <AveragePrice type="number">218.0</AveragePrice>
                                <NonBookingPercentage type="number">0.0</NonBookingPercentage>
                                <IsGuaranteeable type="boolean">false</IsGuaranteeable>
                            </RatePlan>
                        </Room>
                    </item>
                    <item type="object">
                        <Code type="string">h010t10201025</Code>
                        <Name type="string">上海南泉大酒店</Name>
                        <Category type="number">3</Category>
                        <Description type="string">酒店开业时间2008 年3 月1 日,共有客房总数165 间。
上海南泉大酒店属于庭院式花园连体别墅酒店,地处繁华的陆家嘴金融贸易区,临近新上海商业城,
在繁忙的高楼大厦边闹中取静,环境优雅,独树一帜。</Description>
                        <Thumbnail type="string">http://static.yudingbao.net/images/hotel/a/25/10201025_1_10_0_3.jpg</Thumbnail>
                        <Photo type="string">http://static.yudingbao.net/images/hotel/a/25/10201025_0_0_0_4.jpg</Photo>
                        <Room type="object">
                            <TypeId type="string">1017</TypeId>
                            <Name type="string">高级房</Name>
                            <Broadband type="number">1</Broadband>
                            <RatePlan type="object">
                                <_id type="number">25834</_id>
                                <Name type="string">含单早</Name>
                                <TotalPrice type="number">996.0</TotalPrice>
                                <LowestPrice type="number">498.0</LowestPrice>
                                <HighestPrice type="number">498.0</HighestPrice>
                                <AveragePrice type="number">498.0</AveragePrice>
                                <NonBookingPercentage type="number">0.0</NonBookingPercentage>
                                <IsGuaranteeable type="boolean">false</IsGuaranteeable>
                            </RatePlan>
                        </Room>
                    </item>
                    <item type="object">
                        <Code type="string">h010t10201347</Code>
                        <Name type="string">上海逸久宾馆</Name>
                        <Category type="number">3</Category>
                        <Description type="string">宾馆开业时间2010年5月1日,楼高2层,客房总数33间(套)。</Description>
                        <Thumbnail type="string">http://static.yudingbao.net/images/hotel/a/51/10201347_1_6_0_1.jpg</Thumbnail>
                        <Photo type="string">http://static.yudingbao.net/images/hotel/a/51/10201347_0_6_0_1.jpg</Photo>
                        <Room type="object">
                            <TypeId type="string">0002</TypeId>
                            <Name type="string">豪华标准房</Name>
                            <Broadband type="number">1</Broadband>
                            <RatePlan type="object">
                                <_id type="number">108595</_id>
                                <Name type="string">不含早</Name>
                                <TotalPrice type="number">320.0</TotalPrice>
                                <LowestPrice type="number">160.0</LowestPrice>
                                <HighestPrice type="number">160.0</HighestPrice>
                                <AveragePrice type="number">160.0</AveragePrice>
                                <NonBookingPercentage type="number">0.0</NonBookingPercentage>
                                <IsGuaranteeable type="boolean">false</IsGuaranteeable>
                            </RatePlan>
                        </Room>
                    </item>
                </Hotels>
            </item>
            <item type="object">
                <CityCode type="string">0301</CityCode>
                <CityName type="string">天津</CityName>
                <CityPinyin type="string">
                </CityPinyin>
                <Hotels type="array">
                    <item type="object">
                        <Code type="string">h010t40301024</Code>
                        <Name type="string">天津万丽泰达酒店</Name>
                        <Category type="number">5</Category>
                        <Description type="string">酒店开业时间2004年6月28日开业,楼高17层,共有客房总数543间,标间面积33平米左右。</Description>
                        <Thumbnail type="string">http://static.yudingbao.net/images/hotel/a/9/40301024_1_5_0_1.jpg</Thumbnail>
                        <Photo type="string">http://static.yudingbao.net/images/hotel/a/9/40301024_0_0_0_1.jpg</Photo>
                        <Room type="object">
                            <TypeId type="string">1024</TypeId>
                            <Name type="string">行政豪华间</Name>
                            <Broadband type="number">2</Broadband>
                            <RatePlan type="object">
                                <_id type="number">55202</_id>
                                <Name type="string">含双早</Name>
                                <TotalPrice type="number">3680.0</TotalPrice>
                                <LowestPrice type="number">1840.0</LowestPrice>
                                <HighestPrice type="number">1840.0</HighestPrice>
                                <AveragePrice type="number">1840.0</AveragePrice>
                                <NonBookingPercentage type="number">0.0</NonBookingPercentage>
                                <IsGuaranteeable type="boolean">false</IsGuaranteeable>
                            </RatePlan>
                        </Room>
                    </item>
                </Hotels>
            </item>
        </HotelSummaries>
    </ResponseBody>
</HttpResponse>


JSON响应

// Json响应,响应体过大,已删节
{
    "Status" : 0,
    "Messages" : ["本操作占用服务器资源较多,建议您做本地缓存,缓存时间可设置为8小时以上。"],
    "ResponseBody" : {
        "HotelSummaries" : [{
                "CityCode" : "0101",
                "CityName" : "北京",
                "CityPinyin" : "",
                "Hotels" : [{
                        "Code" : "h010t40101674",
                        "Name" : "北京广电国际酒店",
                        "Category" : 4,
                        "Description" : "酒店开业时间2008年,楼高14层,客房总数241间(套)。",
                        "Thumbnail" : "http://static.yudingbao.net/images/hotel/a/29/40101674_1_5_0_2.jpg",
                        "Photo" : "http://static.yudingbao.net/images/hotel/a/29/40101674_0_0_0_1.jpg",
                        "Room" : {
                            "TypeId" : "1025",
                            "Name" : "标准客房",
                            "Broadband" : 1,
                            "RatePlan" : {
                                "_id" : 16149,
                                "Name" : "不含早",
                                "TotalPrice" : 1116.0,
                                "LowestPrice" : 558.0,
                                "HighestPrice" : 558.0,
                                "AveragePrice" : 558.0,
                                "NonBookingPercentage" : 0.0,
                                "IsGuaranteeable" : false
                            }
                        }
                    }, {
                        "Code" : "h010t50501006",
                        "Name" : "北京华彬费尔蒙酒店",
                        "Category" : 5,
                        "Description" : "酒店开业时间2009年,楼高25层,共有客房总数222间(套),标间面积40平米。",
                        "Thumbnail" : "http://static.yudingbao.net/images/hotel/a/33/50501006_1_5_0_2.jpg",
                        "Photo" : "http://static.yudingbao.net/images/hotel/a/33/50501006_0_5_0_2.jpg",
                        "Room" : {
                            "TypeId" : "0003",
                            "Name" : "金尊费尔蒙房",
                            "Broadband" : 2,
                            "RatePlan" : {
                                "_id" : 93314,
                                "Name" : "含双早",
                                "TotalPrice" : 6440.0,
                                "LowestPrice" : 3105.0,
                                "HighestPrice" : 3335.0,
                                "AveragePrice" : 3220.0,
                                "NonBookingPercentage" : 0.0,
                                "IsGuaranteeable" : false
                            }
                        }
                    }, {
                        "Code" : "h010t40101237",
                        "Name" : "北京龙山渡假村(昌平-十三陵水库)",
                        "Category" : 4,
                        "Description" : "北京龙山度假村位于昌平区东南,所在地紧邻京密引水渠边。
是北京市文物保护单位,周围有著名的旅游景点十三陵水库、居庸关长城、银山塔林、莽山森林公园等,
交通便利,是集会议、休闲、度假、旅游为一体中式建筑风格的度假村。度假村开业时间2006年6月18日,
楼高2层,共有客房总数75间(套),标间面积24平米。",
                        "Thumbnail" : "http://static.yudingbao.net/images/hotel/a/17/40101237_1_10_0_1.jpg",
                        "Photo" : "http://static.yudingbao.net/images/hotel/a/17/40101237_0_0_0_1.jpg",
                        "Room" : {
                            "TypeId" : "1017",
                            "Name" : "标准间",
                            "Broadband" : 2,
                            "RatePlan" : {
                                "_id" : 14977,
                                "Name" : "不含早",
                                "TotalPrice" : 576.0,
                                "LowestPrice" : 288.0,
                                "HighestPrice" : 288.0,
                                "AveragePrice" : 288.0,
                                "NonBookingPercentage" : 0.0,
                                "IsGuaranteeable" : false
                            }
                        }
                    }]
            }, {
                "CityCode" : "0201",
                "CityName" : "上海",
                "CityPinyin" : "",
                "Hotels" : [{
                        "Code" : "h010t10201347",
                        "Name" : "上海逸久宾馆",
                        "Category" : 3,
                        "Description" : "宾馆开业时间2010年5月1日,楼高2层,客房总数33间(套)。",
                        "Thumbnail" : "http://static.yudingbao.net/images/hotel/a/51/10201347_1_6_0_1.jpg",
                        "Photo" : "http://static.yudingbao.net/images/hotel/a/51/10201347_0_6_0_1.jpg",
                        "Room" : {
                            "TypeId" : "0002",
                            "Name" : "豪华标准房",
                            "Broadband" : 1,
                            "RatePlan" : {
                                "_id" : 108595,
                                "Name" : "不含早",
                                "TotalPrice" : 320.0,
                                "LowestPrice" : 160.0,
                                "HighestPrice" : 160.0,
                                "AveragePrice" : 160.0,
                                "NonBookingPercentage" : 0.0,
                                "IsGuaranteeable" : false
                            }
                        }
                    }, {
                        "Code" : "h010t50201239",
                        "Name" : "上海新梅万豪行政公寓",
                        "Category" : 5,
                        "Description" : "酒店开业时间2006年8月16日,楼高38层,客房总数223间(套)。",
                        "Thumbnail" : "http://static.yudingbao.net/images/hotel/a/19/50201239_1_10_0_4.jpg",
                        "Photo" : "http://static.yudingbao.net/images/hotel/a/19/50201239_0_10_0_4.jpg",
                        "Room" : {
                            "TypeId" : "1017",
                            "Name" : "行政一室套房",
                            "Broadband" : 2,
                            "RatePlan" : {
                                "_id" : 89818,
                                "Name" : "含单早",
                                "TotalPrice" : 3634.0,
                                "LowestPrice" : 1817.0,
                                "HighestPrice" : 1817.0,
                                "AveragePrice" : 1817.0,
                                "NonBookingPercentage" : 0.0,
                                "IsGuaranteeable" : false
                            }
                        }
                    }, {
                        "Code" : "h010t10201082",
                        "Name" : "上海西藏大厦万怡酒店",
                        "Category" : 5,
                        "Description" : "酒店开业时间2009年2月,楼高23层,客房总数360间(套)。",
                        "Thumbnail" : "http://static.yudingbao.net/images/hotel/a/31/10201082_1_5_0_1.jpg",
                        "Photo" : "http://static.yudingbao.net/images/hotel/a/31/10201082_0_5_0_1.jpg",
                        "Room" : {
                            "TypeId" : "0001",
                            "Name" : "豪华房",
                            "Broadband" : 2,
                            "RatePlan" : {
                                "_id" : 9699,
                                "Name" : "含双早",
                                "TotalPrice" : 3036.0,
                                "LowestPrice" : 1518.0,
                                "HighestPrice" : 1518.0,
                                "AveragePrice" : 1518.0,
                                "NonBookingPercentage" : 0.0,
                                "IsGuaranteeable" : false
                            }
                        }
                    }]
            }, {
                "CityCode" : "0301",
                "CityName" : "天津",
                "CityPinyin" : "",
                "Hotels" : [{
                        "Code" : "h010t40301024",
                        "Name" : "天津万丽泰达酒店",
                        "Category" : 5,
                        "Description" : "酒店开业时间2004年6月28日开业,楼高17层,共有客房总数543间,标间面积33平米左右。",
                        "Thumbnail" : "http://static.yudingbao.net/images/hotel/a/9/40301024_1_5_0_1.jpg",
                        "Photo" : "http://static.yudingbao.net/images/hotel/a/9/40301024_0_0_0_1.jpg",
                        "Room" : {
                            "TypeId" : "1024",
                            "Name" : "行政豪华间",
                            "Broadband" : 2,
                            "RatePlan" : {
                                "_id" : 55202,
                                "Name" : "含双早",
                                "TotalPrice" : 3680.0,
                                "LowestPrice" : 1840.0,
                                "HighestPrice" : 1840.0,
                                "AveragePrice" : 1840.0,
                                "NonBookingPercentage" : 0.0,
                                "IsGuaranteeable" : false
                            }
                        }
                    }]
            }]
    }
}


JSONP响应

// JsonP响应,响应体过大,已删节
jsoncallback({
    "Status" : 0,
    "Messages" : ["本操作占用服务器资源较多,建议您做本地缓存,缓存时间可设置为8小时以上。"],
    "ResponseBody" : {
        "HotelSummaries" : [{
                "CityCode" : "0101",
                "CityName" : "北京",
                "CityPinyin" : "",
                "Hotels" : [{
                        "Code" : "h010t40101674",
                        "Name" : "北京广电国际酒店",
                        "Category" : 4,
                        "Description" : "酒店开业时间2008年,楼高14层,客房总数241间(套)。",
                        "Thumbnail" : "http://static.yudingbao.net/images/hotel/a/29/40101674_1_5_0_2.jpg",
                        "Photo" : "http://static.yudingbao.net/images/hotel/a/29/40101674_0_0_0_1.jpg",
                        "Room" : {
                            "TypeId" : "1025",
                            "Name" : "标准客房",
                            "Broadband" : 1,
                            "RatePlan" : {
                                "_id" : 16149,
                                "Name" : "不含早",
                                "TotalPrice" : 1116.0,
                                "LowestPrice" : 558.0,
                                "HighestPrice" : 558.0,
                                "AveragePrice" : 558.0,
                                "NonBookingPercentage" : 0.0,
                                "IsGuaranteeable" : false
                            }
                        }
                    }, {
                        "Code" : "h010t50501006",
                        "Name" : "北京华彬费尔蒙酒店",
                        "Category" : 5,
                        "Description" : "酒店开业时间2009年,楼高25层,共有客房总数222间(套),标间面积40平米。",
                        "Thumbnail" : "http://static.yudingbao.net/images/hotel/a/33/50501006_1_5_0_2.jpg",
                        "Photo" : "http://static.yudingbao.net/images/hotel/a/33/50501006_0_5_0_2.jpg",
                        "Room" : {
                            "TypeId" : "0003",
                            "Name" : "金尊费尔蒙房",
                            "Broadband" : 2,
                            "RatePlan" : {
                                "_id" : 93314,
                                "Name" : "含双早",
                                "TotalPrice" : 6440.0,
                                "LowestPrice" : 3105.0,
                                "HighestPrice" : 3335.0,
                                "AveragePrice" : 3220.0,
                                "NonBookingPercentage" : 0.0,
                                "IsGuaranteeable" : false
                            }
                        }
                    }, {
                        "Code" : "h010t40101237",
                        "Name" : "北京龙山渡假村(昌平-十三陵水库)",
                        "Category" : 4,
                        "Description" : "北京龙山度假村位于昌平区东南,所在地紧邻京密引水渠边。
是北京市文物保护单位,周围有著名的旅游景点十三陵水库、居庸关长城、银山塔林、莽山森林公园等,交通便利,
是集会议、休闲、度假、旅游为一体中式建筑风格的度假村。度假村开业时间2006年6月18日,楼高2层,
共有客房总数75间(套),标间面积24平米。",
                        "Thumbnail" : "http://static.yudingbao.net/images/hotel/a/17/40101237_1_10_0_1.jpg",
                        "Photo" : "http://static.yudingbao.net/images/hotel/a/17/40101237_0_0_0_1.jpg",
                        "Room" : {
                            "TypeId" : "1017",
                            "Name" : "标准间",
                            "Broadband" : 2,
                            "RatePlan" : {
                                "_id" : 14977,
                                "Name" : "不含早",
                                "TotalPrice" : 576.0,
                                "LowestPrice" : 288.0,
                                "HighestPrice" : 288.0,
                                "AveragePrice" : 288.0,
                                "NonBookingPercentage" : 0.0,
                                "IsGuaranteeable" : false
                            }
                        }
                    }]
            }, {
                "CityCode" : "0201",
                "CityName" : "上海",
                "CityPinyin" : "",
                "Hotels" : [{
                        "Code" : "h010t10201347",
                        "Name" : "上海逸久宾馆",
                        "Category" : 3,
                        "Description" : "宾馆开业时间2010年5月1日,楼高2层,客房总数33间(套)。",
                        "Thumbnail" : "http://static.yudingbao.net/images/hotel/a/51/10201347_1_6_0_1.jpg",
                        "Photo" : "http://static.yudingbao.net/images/hotel/a/51/10201347_0_6_0_1.jpg",
                        "Room" : {
                            "TypeId" : "0002",
                            "Name" : "豪华标准房",
                            "Broadband" : 1,
                            "RatePlan" : {
                                "_id" : 108595,
                                "Name" : "不含早",
                                "TotalPrice" : 320.0,
                                "LowestPrice" : 160.0,
                                "HighestPrice" : 160.0,
                                "AveragePrice" : 160.0,
                                "NonBookingPercentage" : 0.0,
                                "IsGuaranteeable" : false
                            }
                        }
                    }, {
                        "Code" : "h010t50201239",
                        "Name" : "上海新梅万豪行政公寓",
                        "Category" : 5,
                        "Description" : "酒店开业时间2006年8月16日,楼高38层,客房总数223间(套)。",
                        "Thumbnail" : "http://static.yudingbao.net/images/hotel/a/19/50201239_1_10_0_4.jpg",
                        "Photo" : "http://static.yudingbao.net/images/hotel/a/19/50201239_0_10_0_4.jpg",
                        "Room" : {
                            "TypeId" : "1017",
                            "Name" : "行政一室套房",
                            "Broadband" : 2,
                            "RatePlan" : {
                                "_id" : 89818,
                                "Name" : "含单早",
                                "TotalPrice" : 3634.0,
                                "LowestPrice" : 1817.0,
                                "HighestPrice" : 1817.0,
                                "AveragePrice" : 1817.0,
                                "NonBookingPercentage" : 0.0,
                                "IsGuaranteeable" : false
                            }
                        }
                    }, {
                        "Code" : "h010t10201082",
                        "Name" : "上海西藏大厦万怡酒店",
                        "Category" : 5,
                        "Description" : "酒店开业时间2009年2月,楼高23层,客房总数360间(套)。",
                        "Thumbnail" : "http://static.yudingbao.net/images/hotel/a/31/10201082_1_5_0_1.jpg",
                        "Photo" : "http://static.yudingbao.net/images/hotel/a/31/10201082_0_5_0_1.jpg",
                        "Room" : {
                            "TypeId" : "0001",
                            "Name" : "豪华房",
                            "Broadband" : 2,
                            "RatePlan" : {
                                "_id" : 9699,
                                "Name" : "含双早",
                                "TotalPrice" : 3036.0,
                                "LowestPrice" : 1518.0,
                                "HighestPrice" : 1518.0,
                                "AveragePrice" : 1518.0,
                                "NonBookingPercentage" : 0.0,
                                "IsGuaranteeable" : false
                            }
                        }
                    }]
            }, {
                "CityCode" : "0301",
                "CityName" : "天津",
                "CityPinyin" : "",
                "Hotels" : [{
                        "Code" : "h010t40301024",
                        "Name" : "天津万丽泰达酒店",
                        "Category" : 5,
                        "Description" : "酒店开业时间2004年6月28日开业,楼高17层,共有客房总数543间,标间面积33平米左右。",
                        "Thumbnail" : "http://static.yudingbao.net/images/hotel/a/9/40301024_1_5_0_1.jpg",
                        "Photo" : "http://static.yudingbao.net/images/hotel/a/9/40301024_0_0_0_1.jpg",
                        "Room" : {
                            "TypeId" : "1024",
                            "Name" : "行政豪华间",
                            "Broadband" : 2,
                            "RatePlan" : {
                                "_id" : 55202,
                                "Name" : "含双早",
                                "TotalPrice" : 3680.0,
                                "LowestPrice" : 1840.0,
                                "HighestPrice" : 1840.0,
                                "AveragePrice" : 1840.0,
                                "NonBookingPercentage" : 0.0,
                                "IsGuaranteeable" : false
                            }
                        }
                    }]
            }]
    }
});


参考来源[ ]

预订宝酒店预订网站系统使用手册导航

系统设置: 网站参数设置|图片功能设置|会员参数设置|有问必 答(论坛留言)设置|发布设置|首页默认城市设置
后台管理 客服设置|权限组管理|系统账户设置|个人设置|酒店 资讯|实用工具|网址导航|首页广告|会展信息|单页图 文|发布模型管理|分类管理|推荐属性管理|SEO关键字管理

评论管理|有问必答|会员管理|等级管理|酒店订单管理|手机推广终端

二次开发 API总体架构|鉴权方式|酒店地理信息API|酒店基础信息API酒店房价与房态API|酒店订单API|IP地址归属地查询系统|手机短信API|getRegions|getCity

getLandmarks|getHotelIdList|getHotelInfo|getHotelChainBrands|getHotelList|getHotelRooms|getHotelSummaryList|getOrderRoomStatus|submitOrder getOrderInfo|sendRegisterSMS|sendGetpassSMS|sendPromoteRegisterSMS