主题酒店api,携程酒店信息查询

主题酒店api携程酒店信息查询,在线预订和支付下单(!post内容是json串如{"Key":"appkey"}而不是Key=appkey,建议使用浏览器插件测试,如火狐的HttpReqeuster, 谷歌的DHC)

接口名称:主题酒店api

接口平台:api开放平台

接口地址:http://api2.juheapi.com/xiecheng/hotel/staticdetail

支持格式:json

请求方式:post(application/json; utf-8)

请求示例:http://api2.juheapi.com/xiecheng/hotel/staticdetail

主题酒店api调用JSON返回示例:

{
  "error_code": "200",
  "reason": "请求成功",
  "result": [
    {
      // 行政区代码
      "AreaID": "113",
      // 酒店品牌代码
      "BrandCode": "138",
      // 酒店所在城市代码
      "HotelCityCode": "2",
      // 酒店代码
      "HotelCode": "625",
      // 酒店ID
      "HotelId": "625",
      // 酒店名称
      "HotelName": "上海华亭宾馆",
      // 酒店星级、携程星级、推荐级别
      "AffiliationInfo": {
        // 酒店等级、评分列表
        "Awards": {
          // 酒店等级、评分
          "Award": [
            {
              // 评分者,参见ListCode(APC)
              "Provider": "HotelStarLicence",
              // 分数或级别
              "Rating": "1"
            },
            {
              "Provider": "HotelStarRate",
              "Rating": "5"
            },
            {
              "Provider": "CtripStarRate",
              "Rating": "5"
            },
            {
              "Provider": "CtripUserRate",
              "Rating": "5.0"
            },
            {
              "Provider": "CtripCommRate",
              "Rating": "4.3"
            },
            {
              "Provider": "CommSurroundingRate",
              "Rating": "4.5"
            },
            {
              "Provider": "CommFacilityRate",
              "Rating": "4.1"
            },
            {
              "Provider": "CommCleanRate",
              "Rating": "4.4"
            },
            {
              "Provider": "CommServiceRate",
              "Rating": "4.3"
            }
          ]
        }
      },
      // 行政区信息
      "AreaInfo": {
        // 地标类区域和建筑列表
        "RefPoints": {
          // 区标
          "RefPoint": [
            {
              // 距离数
              "Distance": "0.009",
              "Latitude": "31.181543",
              "Longitude": "121.435454",
              // 地标名称
              "Name": "莫凡彼",
              // 地标类别代码,参考CodeList (REF)
              "RefPointCategoryCode": "1",
              // 参考点名称
              "RefPointName": "餐饮",
              // 距离单位代码
              "UnitOfMeasureCode": "2",
              // 文字描述
              "DescriptiveText": "莫凡彼"
            },
            {
              "Distance": "0.009",
              "Latitude": "31.181542",
              "Longitude": "121.435455",
              "Name": "FLAMINGO CLUB",
              "RefPointCategoryCode": "1",
              "RefPointName": "餐饮",
              "UnitOfMeasureCode": "2",
              "DescriptiveText": "FLAMINGO CLUB"
            }
          ]
        }
      },
      "ContactInfos": {
        "ContactInfo": {
          "Phones": {
            "Phone": [
              {
                "PhoneNumber": "021-64396000",
                "PhoneTechType": "1"
              },
              {
                "PhoneNumber": "021-64812070",
                "PhoneTechType": "3"
              }
            ]
          }
        }
      },
      // 设施信息
      "FacilityInfo": {
        // 房型信息列表
        "GuestRooms": {
          // 房型信息
          "GuestRoom": [
            {
              // 房型名称
              "RoomTypeName": "豪华大床房",
              // 设施设备列表
              "Amenities": {
                // 房间设施,是否可加床、免费宽带、付费宽带
                "Amenity": [
                  {
                    // 房间设施代码,参考CodeList (RMA)
                    "RoomAmenityCode": "3",
                    // 设施类型描述性文字
                    "DescriptiveText": "有线宽带"
                  }
                ]
              },
              "TPA_Extensions": {
                "TPA_Extension": [
                  {
                    "FTypeName": "便利设施",
                    "FacilityName": "客房WIFI覆盖免费",
                    "FacilityValue": "2"
                  }
                ]
              },
              // 客房属性
              "TypeRoom": {
                // 床型代码,参考CodeList(BED)
                "BedTypeCode": "3",
                // 客房在建筑的第几层
                "Floor": "6-11、15-17",
                "HasWindow": "2",
                "InvBlockCode": "547352",
                "Name": "豪华大床房",
                "NonSmoking": "false",
                // 房间数量
                "Quantity": "371",
                "RoomSize": "25-28",
                // 房型代码,对应Ctrip基础房型
                "RoomTypeCode": "246697",
                // 床的尺寸
                "Size": "1.80",
                // 标准入住人数
                "StandardOccupancy": "3"
              }
            }
          ]
        }
      },
      // 酒店类信息
      "HotelInfo": {
        // 酒店信息上次更新时间
        "LastUpdated": "2008-01-01T00:00:00",
        // 何时建造
        "WhenBuilt": "1986-1-1 0:00:00",
        "Address": {
          "AddressLine": "漕溪北路1200号",
          "CityName": "上海",
          "PostalCode": "200030",
          "TPA_Extensions": {
            "RoadCross": {
              "DescriptionText": "近中山西路"
            }
          },
          "Zone": [
            {
              "ZoneCode": "7",
              "ZoneName": "徐家汇地区"
            },
            {
              "ZoneCode": "990",
              "ZoneName": "八万人体育场地区"
            }
          ]
        },
        // 一些常用的酒店标签和分类
        "CategoryCodes": {
          "SegmentCategory": {
            "Code": "4"
          }
        },
        // 地理位置经纬度
        "Position": {
          // 纬度
          "Latitude": "31.181566",
          // 经度
          "Longitude": "121.435361",
          // 坐标类型
          "PositionTypeCode": "502"
        },
        // 酒店服务和设备列表
        "Services": {
          // 酒店服务和设备
          "Service": [
            {
              // 设施设备代码, 参考CodeList (HAC)
              "Code": "76",
              // 设施设备类别,例如:客房设施和服务、宾馆餐饮设施等
              "ID": "1004",
              // 施或服务文字描述
              "DescriptiveText": "雨伞"
            },
            {
              "Code": "77",
              "ID": "1004",
              "DescriptiveText": "书桌"
            }
          ]
        }
      },
      // 多媒体类信息列表
      "MultimediaDescriptions": {
        "MultimediaDescription": [
          {
            // 图片信息列表
            "ImageItems": {
              // 图片信息
              "ImageItem": [
                {
                  // 图片类别,参考ListCode (PIC)
                  "Category": "6",
                  // 图片描述
                  "Description": {
                    "Caption": "行政楼豪华房"
                  },
                  // 图片格式和信息
                  "ImageFormat": {
                    "URL": "http://Images4.c-ctrip.com/target/hotel/388000/387372/b635dc0a3ea44ed1bf0ef6c60587e664_550_412.jpg"
                  },
                  "TPA_Extensions": {
                    "InvBlockCode": "4097589"
                  }
                },
                {
                  "Category": "6",
                  "Description": {
                    "Caption": "行政楼豪华房"
                  },
                  "ImageFormat": {
                    "URL": "http://Images4.c-ctrip.com/target/hotel/388000/387372/2aeb6d0471fb4fd49e66b066b5432f95_550_412.jpg"
                  },
                  "TPA_Extensions": {
                    "InvBlockCode": "4097589"
                  }
                }
              ]
            }
          },
          {
            // 描述信息列表
            "TextItems": {
              // 描述信息
              "TextItem": [
                {
                  // 描述类别
                  "Category": "5",
                  // 文字描述
                  "Description": "上海华亭宾馆位于漕溪北路,毗邻地铁站,地铁1,3,4号线均可到达,漫步即可抵达徐家汇商业中心,与上海八万人体育馆咫尺之遥。无论您要去上海市内任何地方,快速的交通,将会给您带来超越期望的享受。\u0026lt;br\u0026gt;上海华亭宾馆是中国旅游业标志性饭店之一。作为08年北京奥运会上海赛区官方指定接待酒店,2010年世博会以及2011年第十四届国际泳联世界锦标赛官方指定接待酒店。\u0026lt;br\u0026gt;上海华亭宾馆一楼花苑自助餐厅,全新概念开放式厨房设计,提供国际风味佳肴。一楼美食店,精心准备新鲜、美味、品种繁多的点心、中西简餐供您选择。大堂酒吧是轻松小憩和会见友人的最佳场所,夜间还有精彩菲律宾乐队现场表演。26楼观月台景观中餐厅,把盏品馔,临巅俯瞰,徐家汇地区都市胜景尽收眼底。香港得奖名厨领衔主理,精品传家粤菜、上海菜。\u0026lt;br\u0026gt;三楼克拉克海奇健身中心,宽敞现代的健身房、干净恒温的游泳池、舒适的桑拿、弹子房等各类健身项目任你挑。贵宾楼行政楼层的客人会醉心于单独登记入住,24小时贴身管家服务,独立行政酒廊的尊贵享受,带给您全方位的奢华感受。"
                },
                {
                  "Category": "11",
                  "Description": "上海华亭宾馆位于繁华的徐家汇商业中心,毗邻上海大舞台、旅游集散中心。出门即是地铁1、4号线,地理位置优越,既适合商务会议也方便休闲旅游购物。"
                },
                {
                  "Category": "501",
                  "URL": "http://u.ctrip.com/union/CtripRedirect.aspx?TypeID=2\u0026amp;Allianceid=30722\u0026amp;sid=471474\u0026amp;OUID=\u0026amp;jumpUrl=http://hotels.ctrip.com/hotel/625.html"
                },
                {
                  "Category": "8",
                  "Description": "1.华亭宾馆是徐家汇的标志性建筑之一,知名度很高,来往便利。\u0026lt;br/\u0026gt;2.交通方便,设施完善,服务热情,周到"
                }
              ]
            }
          }
        ]
      },
      "Policies": {
        "Policy": {
          "PolicyInfo": {
            "CheckInTime": "该酒店14:00办理入住,早到可能需要等待",
            "CheckOutTime": ""
          },
          "PolicyInfoCodes": {
            "PolicyInfoCode": {
              "Code": "OnlineDisplay",
              "Description": [
                {
                  "Name": "ArrivalAndDeparture",
                  "Text": "入住时间:14:00以后      离店时间:12:00以前"
                },
                {
                  "Name": "Cancel",
                  "Text": "不同类型的客房附带不同的取消预订和预先付费政策 选择上述客房时,请参阅“客房政策”。"
                },
                {
                  "Name": "DepositAndPrepaid",
                  "Text": "入住时需要出示政府核发的身份证件(带照片)。请携带信用卡和现金用以支付押金或额外费用。"
                },
                {
                  "Name": "Pet",
                  "Text": "不可携带宠物。"
                },
                {
                  "Name": "Requirements",
                  "Text": "特殊要求视入住时可提供的服务而定,并可能产生额外的费用。不能保证满足特殊要求。信用卡授权解除需时1-3个月。视不同国家、城市之银行操作时间而定。"
                }
              ]
            }
          }
        }
      },
      "TPA_Extensions": {
        "CityImportantMessage": {
          "CityImportantMessageType": {
            "EndDate": "1900-01-01T00:00:00",
            "StartDate": "1900-01-01T00:00:00",
            "MessageContent": "alsghqwoega;sdjga;sdgjaso;dj"
          }
        },
        "Roomquantity": "773"
      }
    }
  ]
}


你可能感兴趣的:(主题酒店api,携程酒店)