POST api/trade/getboardcount

【地图】获取板块二手房数量

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

Request 信息

URI 参数

None.

Body 参数

参数

TradeMapModel
名称说明数据类型附加信息
ConditionModel

TradeListModel

None.

SLat

最小纬度

decimal number

Required

SLng

最小经度

decimal number

Required

ELat

最大纬度

decimal number

Required

ELng

最大经度

decimal number

Required

SubwayStationId

包含的地铁站点,如果包含则会返回地铁站点的房源套数信息[BuildingCount有效]

Collection of integer

None.

BusLineId

包含的公交站点,如果包含则会返回公交站点的房源套数信息[BuildingCount有效]

integer

None.

Direct

公交上行或下行

integer

None.

Size

默认返回所有,如果需要返回前面几条可设置此值

integer

Range: inclusive between 1 and 2147483647

City

城市

string

Required

Token

token

string

Required

Platform

string

None.

Request 数据格式

application/json, text/json

示例:
{
  "ConditionModel": {
    "IsSchoolHouse": true,
    "SchoolId": 1,
    "IsTaxless": true,
    "IsUrgentSale": true,
    "IsHot": true,
    "RegionCode": "sample string 4",
    "Board": 5,
    "Price": "sample string 6",
    "Area": "sample string 7",
    "Age": "sample string 8",
    "RoomType": 9,
    "HouseType": 10,
    "Deck": 11,
    "Direct": 12,
    "Source": 1,
    "RefreshDate": "2020-04-04T07:35:44.8266686+08:00",
    "Lat": 1.1,
    "Lng": 1.1,
    "Distance": 1,
    "IsGisCoord": true,
    "PriceSort": 1,
    "AreaSort": 1,
    "ExpertFirst": true,
    "BuildingId": 1,
    "Keyword": "sample string 15",
    "IsSubway": true,
    "SubwayId": 1,
    "SubwayStaionId": 1,
    "BusId": "sample string 17",
    "IsBus": true,
    "BusStationId": 1,
    "CustId": 1,
    "Pi": 1,
    "Ps": 1,
    "City": "sample string 19",
    "Token": "sample string 20",
    "Platform": "sample string 21"
  },
  "SLat": 1.0,
  "SLng": 2.0,
  "ELat": 3.0,
  "ELng": 4.0,
  "SubwayStationId": [
    1,
    2
  ],
  "BusLineId": 1,
  "Direct": 5,
  "Size": 1,
  "City": "sample string 6",
  "Token": "sample string 7",
  "Platform": "sample string 8"
}

application/xml, text/xml

示例:
<TradeMapModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Trade">
  <Platform xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 8</Platform>
  <Token xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 7</Token>
  <City xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 6</City>
  <BusLineId xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">1</BusLineId>
  <Direct xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">5</Direct>
  <ELat xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">3</ELat>
  <ELng xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">4</ELng>
  <SLat xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">1</SLat>
  <SLng xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">2</SLng>
  <Size xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">1</Size>
  <SubwayStationId xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">
    <d2p1:long>1</d2p1:long>
    <d2p1:long>2</d2p1:long>
  </SubwayStationId>
  <ConditionModel>
    <Platform xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 21</Platform>
    <Token xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 20</Token>
    <City xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 19</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>
    <Age xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 8</Age>
    <Area xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 7</Area>
    <AreaSort xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">1</AreaSort>
    <Board xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">5</Board>
    <BuildingId xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">1</BuildingId>
    <BusId xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 17</BusId>
    <BusStationId xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">1</BusStationId>
    <CustId xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">1</CustId>
    <Deck xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">11</Deck>
    <Direct xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">12</Direct>
    <Distance xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">1</Distance>
    <ExpertFirst xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">true</ExpertFirst>
    <HouseType xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">10</HouseType>
    <IsBus xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">true</IsBus>
    <IsGisCoord xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">true</IsGisCoord>
    <IsSubway xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">true</IsSubway>
    <Keyword xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 15</Keyword>
    <Lat xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">1.1</Lat>
    <Lng xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">1.1</Lng>
    <Price xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 6</Price>
    <PriceSort xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">1</PriceSort>
    <RefreshDate xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">2020-04-04T07:35:44.8266686+08:00</RefreshDate>
    <RegionCode xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">sample string 4</RegionCode>
    <RoomType xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">9</RoomType>
    <Source xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">Landlord</Source>
    <SubwayId xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">1</SubwayId>
    <SubwayStaionId xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.House">1</SubwayStaionId>
    <IsHot>true</IsHot>
    <IsSchoolHouse>true</IsSchoolHouse>
    <IsTaxless>true</IsTaxless>
    <IsUrgentSale>true</IsUrgentSale>
    <SchoolId>1</SchoolId>
  </ConditionModel>
</TradeMapModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

结果

BoardCountResult
名称说明数据类型附加信息
BoardsCount

板块房源数量

Collection of BoardCount

None.

ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

示例:
{
  "BoardsCount": [
    {
      "Name": "sample string 1",
      "Id": 2,
      "Count": 3,
      "CenterPos": {
        "Lat": 1.0,
        "Lng": 2.0
      }
    },
    {
      "Name": "sample string 1",
      "Id": 2,
      "Count": 3,
      "CenterPos": {
        "Lat": 1.0,
        "Lng": 2.0
      }
    }
  ],
  "ErrorCode": 0,
  "Msg": "sample string 1"
}

application/xml, text/xml

示例:
<BoardCountResult 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 1</Msg>
  <BoardsCount>
    <BoardCountResult.BoardCount>
      <CenterPos xmlns:d4p1="http://schemas.datacontract.org/2004/07/API.Models.API">
        <d4p1:Lat>1</d4p1:Lat>
        <d4p1:Lng>2</d4p1:Lng>
      </CenterPos>
      <Count>3</Count>
      <Id>2</Id>
      <Name>sample string 1</Name>
    </BoardCountResult.BoardCount>
    <BoardCountResult.BoardCount>
      <CenterPos xmlns:d4p1="http://schemas.datacontract.org/2004/07/API.Models.API">
        <d4p1:Lat>1</d4p1:Lat>
        <d4p1:Lng>2</d4p1:Lng>
      </CenterPos>
      <Count>3</Count>
      <Id>2</Id>
      <Name>sample string 1</Name>
    </BoardCountResult.BoardCount>
  </BoardsCount>
</BoardCountResult>