POST api/trade/getnearbylist

获取附近列表

默认返回json数据,若要返回xml格式数据在访问地址后加上xml=true

Request 信息

URI 参数

None.

Body 参数

参数

NearbyModel
名称说明数据类型附加信息
Lat

纬度

decimal number

Required

Lng

经度

decimal number

Required

HouseId

排除在外的houseId

integer

None.

BuildingId

优先小区Id

integer

None.

Price

价格

decimal number

None.

Pi

PageIndex 页码,默认1

integer

None.

Ps

PageSize 页容量,默认20,最大50

integer

None.

City

城市

string

Required

Token

token

string

Required

Platform

string

None.

Request 数据格式

application/json, text/json

示例:
{
  "Lat": 1.0,
  "Lng": 2.0,
  "HouseId": 1,
  "BuildingId": 1,
  "Price": 3.1,
  "Pi": 1,
  "Ps": 1,
  "City": "sample string 4",
  "Token": "sample string 5",
  "Platform": "sample string 6"
}

application/xml, text/xml

示例:
<NearbyModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">
  <Platform xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 6</Platform>
  <Token xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 5</Token>
  <City xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 4</City>
  <Pi xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">1</Pi>
  <Ps xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">1</Ps>
  <BuildingId>1</BuildingId>
  <HouseId>1</HouseId>
  <Lat>1</Lat>
  <Lng>2</Lng>
  <Price>3.1</Price>
</NearbyModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

结果

NearbyResult
名称说明数据类型附加信息
Houses

房源

Collection of RecommendHouse

None.

TotalCount

总记录数

integer

None.

TotalPage

总页数

integer

None.

ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

示例:
{
  "Houses": [
    {
      "Id": 1,
      "BuildingId": 2,
      "Name": "sample string 3",
      "HouseCommend": "sample string 4",
      "BoardName": "sample string 5",
      "RentWay": "sample string 6",
      "Pic": "sample string 7",
      "Area": 8.1,
      "Price": 9.1,
      "PriceUnit": "sample string 10",
      "RoomCount": 11,
      "HollCount": 12,
      "DeckName": "sample string 13",
      "Floor": 14,
      "FloorCount": 15,
      "IsTaxless": true,
      "IsSchoolHouse": true,
      "IsUrgentSale": true,
      "IsHot": true,
      "Direct": "sample string 20",
      "IsUrgentRent": true
    },
    {
      "Id": 1,
      "BuildingId": 2,
      "Name": "sample string 3",
      "HouseCommend": "sample string 4",
      "BoardName": "sample string 5",
      "RentWay": "sample string 6",
      "Pic": "sample string 7",
      "Area": 8.1,
      "Price": 9.1,
      "PriceUnit": "sample string 10",
      "RoomCount": 11,
      "HollCount": 12,
      "DeckName": "sample string 13",
      "Floor": 14,
      "FloorCount": 15,
      "IsTaxless": true,
      "IsSchoolHouse": true,
      "IsUrgentSale": true,
      "IsHot": true,
      "Direct": "sample string 20",
      "IsUrgentRent": true
    }
  ],
  "TotalCount": 1,
  "TotalPage": 2,
  "ErrorCode": 0,
  "Msg": "sample string 3"
}

application/xml, text/xml

示例:
<NearbyResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">
  <ErrorCode xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">SUCCESS</ErrorCode>
  <Msg xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 3</Msg>
  <TotalCount xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">1</TotalCount>
  <TotalPage xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">2</TotalPage>
  <Houses>
    <RecommendHouse>
      <Area>8.1</Area>
      <BoardName>sample string 5</BoardName>
      <BuildingId>2</BuildingId>
      <DeckName>sample string 13</DeckName>
      <Direct>sample string 20</Direct>
      <Floor>14</Floor>
      <FloorCount>15</FloorCount>
      <HollCount>12</HollCount>
      <HouseCommend>sample string 4</HouseCommend>
      <Id>1</Id>
      <IsHot>true</IsHot>
      <IsSchoolHouse>true</IsSchoolHouse>
      <IsTaxless>true</IsTaxless>
      <IsUrgentRent>true</IsUrgentRent>
      <IsUrgentSale>true</IsUrgentSale>
      <Name>sample string 3</Name>
      <Pic>sample string 7</Pic>
      <Price>9.1</Price>
      <PriceUnit>sample string 10</PriceUnit>
      <RentWay>sample string 6</RentWay>
      <RoomCount>11</RoomCount>
    </RecommendHouse>
    <RecommendHouse>
      <Area>8.1</Area>
      <BoardName>sample string 5</BoardName>
      <BuildingId>2</BuildingId>
      <DeckName>sample string 13</DeckName>
      <Direct>sample string 20</Direct>
      <Floor>14</Floor>
      <FloorCount>15</FloorCount>
      <HollCount>12</HollCount>
      <HouseCommend>sample string 4</HouseCommend>
      <Id>1</Id>
      <IsHot>true</IsHot>
      <IsSchoolHouse>true</IsSchoolHouse>
      <IsTaxless>true</IsTaxless>
      <IsUrgentRent>true</IsUrgentRent>
      <IsUrgentSale>true</IsUrgentSale>
      <Name>sample string 3</Name>
      <Pic>sample string 7</Pic>
      <Price>9.1</Price>
      <PriceUnit>sample string 10</PriceUnit>
      <RentWay>sample string 6</RentWay>
      <RoomCount>11</RoomCount>
    </RecommendHouse>
  </Houses>
</NearbyResult>