POST api/hotel/2c/multiquery/{lang}

酒店/城市/区域/地标组合查询

Request Information

URI Parameters

NameDescriptionTypeAdditional information
lang

string

Required

Body Parameters

TocHotelMulitQueryRQContract
NameDescriptionTypeAdditional information
top

每项返回记录条数

integer

None.

keywords

关键字

string

None.

itemcode

具体的编码

string

None.

searchtypeitems

搜索项(city,hotel,all_landmark,park)

Collection of string

None.

citycode

城市编码

string

None.

highcolor

高亮显示颜色(如需高亮显示则传色值)

string

None.

lat

中心lat

decimal number

None.

lng

中心lng

decimal number

None.

distance

中心距離 KM

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "top": 1,
  "keywords": "sample string 2",
  "itemcode": "sample string 3",
  "searchtypeitems": [
    "sample string 1",
    "sample string 2"
  ],
  "citycode": "sample string 4",
  "highcolor": "sample string 5",
  "lat": 1.0,
  "lng": 1.0,
  "distance": 1.0
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'TocHotelMulitQueryRQContract'.

Response Information

Resource Description

酒店/城市/区域/地标组合查询

ReturnResultOfTocHotelMulitQueryRSContract
NameDescriptionTypeAdditional information
data

TocHotelMulitQueryRSContract

None.

code

状态码:100成功,其他自定义

integer

None.

message

提示消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": {
    "typeitems": [
      {
        "type": "sample string 1",
        "items": [
          {
            "code": "sample string 1",
            "name": "sample string 2",
            "engname": "sample string 3",
            "citycode": "sample string 4",
            "cityname": "sample string 5",
            "country": "sample string 6",
            "searchId": "sample string 7",
            "distance": 1.0
          },
          {
            "code": "sample string 1",
            "name": "sample string 2",
            "engname": "sample string 3",
            "citycode": "sample string 4",
            "cityname": "sample string 5",
            "country": "sample string 6",
            "searchId": "sample string 7",
            "distance": 1.0
          }
        ]
      },
      {
        "type": "sample string 1",
        "items": [
          {
            "code": "sample string 1",
            "name": "sample string 2",
            "engname": "sample string 3",
            "citycode": "sample string 4",
            "cityname": "sample string 5",
            "country": "sample string 6",
            "searchId": "sample string 7",
            "distance": 1.0
          },
          {
            "code": "sample string 1",
            "name": "sample string 2",
            "engname": "sample string 3",
            "citycode": "sample string 4",
            "cityname": "sample string 5",
            "country": "sample string 6",
            "searchId": "sample string 7",
            "distance": 1.0
          }
        ]
      }
    ]
  },
  "code": 1,
  "message": "sample string 2"
}