POST api/trade/getregioncount

【地图】获取区域二手房数量

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

Request 信息

URI 参数

None.

Body 参数

参数

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

TradeListModel

None.

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-03-29T04:37:15.9333763+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"
  },
  "City": "sample string 1",
  "Token": "sample string 2",
  "Platform": "sample string 3"
}

application/xml, text/xml

示例:
<TradeRegionCountModel 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 3</Platform>
  <Token xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 2</Token>
  <City xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 1</City>
  <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-03-29T04:37:15.9333763+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>
</TradeRegionCountModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

结果

RegionCountResult
名称说明数据类型附加信息
RegionsCount

区域数量

Collection of RegionCount

None.

ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

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

application/xml, text/xml

示例:
<RegionCountResult 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>
  <RegionsCount>
    <RegionCountResult.RegionCount>
      <CenterPos xmlns:d4p1="http://schemas.datacontract.org/2004/07/API.Models.API">
        <d4p1:Lat>1</d4p1:Lat>
        <d4p1:Lng>2</d4p1:Lng>
      </CenterPos>
      <Code>sample string 2</Code>
      <Count>3</Count>
      <Name>sample string 1</Name>
    </RegionCountResult.RegionCount>
    <RegionCountResult.RegionCount>
      <CenterPos xmlns:d4p1="http://schemas.datacontract.org/2004/07/API.Models.API">
        <d4p1:Lat>1</d4p1:Lat>
        <d4p1:Lng>2</d4p1:Lng>
      </CenterPos>
      <Code>sample string 2</Code>
      <Count>3</Count>
      <Name>sample string 1</Name>
    </RegionCountResult.RegionCount>
  </RegionsCount>
</RegionCountResult>