POST api/hotel/2c/nearby

获取周边的酒店路标

Request Information

URI Parameters

None.

Body Parameters

和搜索模型一样

TocHotelNearByRQContract
NameDescriptionTypeAdditional information
hotelcode

酒店编码

string

None.

searchguid

Search Guid

string

None.

landmarkguid

路标 Guid

string

None.

distance

距离

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "hotelcode": "sample string 1",
  "searchguid": "sample string 2",
  "landmarkguid": "sample string 3",
  "distance": 4
}

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 'TocHotelNearByRQContract'.

Response Information

Resource Description

获取周边的酒店路标

ReturnResultOfTocHotelNearByRSContract
NameDescriptionTypeAdditional information
data

TocHotelNearByRSContract

None.

code

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

integer

None.

message

提示消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": {
    "hotellocations": [
      {
        "hotelcode": "sample string 1",
        "hotelname": "sample string 2",
        "hotelengname": "sample string 3",
        "location": "sample string 4",
        "coverpic": "sample string 5",
        "star": 6.0,
        "tripadrating": 7.1,
        "tripadratingimgurl": "sample string 8",
        "tripadreviewcount": 9,
        "lng": "sample string 10",
        "Lat": "sample string 11",
        "price": 12.0,
        "currency": "sample string 13"
      },
      {
        "hotelcode": "sample string 1",
        "hotelname": "sample string 2",
        "hotelengname": "sample string 3",
        "location": "sample string 4",
        "coverpic": "sample string 5",
        "star": 6.0,
        "tripadrating": 7.1,
        "tripadratingimgurl": "sample string 8",
        "tripadreviewcount": 9,
        "lng": "sample string 10",
        "Lat": "sample string 11",
        "price": 12.0,
        "currency": "sample string 13"
      }
    ],
    "hotellandmarks": [
      {
        "LandMarkTypeCode": "sample string 1",
        "LandMarkType": "sample string 2",
        "LandMarkId": "sample string 3",
        "LandMarkName": "sample string 4",
        "Latitude": 5.1,
        "Longitude": 6.1
      },
      {
        "LandMarkTypeCode": "sample string 1",
        "LandMarkType": "sample string 2",
        "LandMarkId": "sample string 3",
        "LandMarkName": "sample string 4",
        "Latitude": 5.1,
        "Longitude": 6.1
      }
    ]
  },
  "code": 1,
  "message": "sample string 2"
}