POST api/building/getmapsimpleinfo

地图上点击小区弹出小区信息 For Web

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

Request 信息

URI 参数

None.

Body 参数

参数

BuildingDetailModel
名称说明数据类型附加信息
Id

小区Id

integer

Required

HasTrade

是否返回二手房

boolean

None.

HasLease

是否返回出租房

boolean

None.

HasRoundBrokers

是否返回周边经纪人

boolean

None.

City

城市

string

Required

Token

token

string

Required

Platform

string

None.

Request 数据格式

application/json, text/json

示例:
{
  "Id": 1,
  "HasTrade": true,
  "HasLease": true,
  "HasRoundBrokers": true,
  "City": "sample string 5",
  "Token": "sample string 6",
  "Platform": "sample string 7"
}

application/xml, text/xml

示例:
<BuildingDetailModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Building">
  <Platform xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 7</Platform>
  <Token xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 6</Token>
  <City xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 5</City>
  <HasLease>true</HasLease>
  <HasRoundBrokers>true</HasRoundBrokers>
  <HasTrade>true</HasTrade>
  <Id>1</Id>
</BuildingDetailModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

结果

MapBuildingSimpleInfoResult
名称说明数据类型附加信息
Id

小区Id

integer

None.

Name

小区名

string

None.

Photo

图片

string

None.

Addr

地址

string

None.

PriceAvg

均价

decimal number

None.

TradeCount

二手房数

integer

None.

LeaseCount

出租房数

integer

None.

ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

示例:
{
  "Id": 1,
  "Name": "sample string 2",
  "Photo": "sample string 3",
  "Addr": "sample string 4",
  "PriceAvg": 5.1,
  "TradeCount": 6,
  "LeaseCount": 7,
  "ErrorCode": 0,
  "Msg": "sample string 8"
}

application/xml, text/xml

示例:
<MapBuildingSimpleInfoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.API.Building">
  <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 8</Msg>
  <Addr>sample string 4</Addr>
  <Id>1</Id>
  <LeaseCount>7</LeaseCount>
  <Name>sample string 2</Name>
  <Photo>sample string 3</Photo>
  <PriceAvg>5.1</PriceAvg>
  <TradeCount>6</TradeCount>
</MapBuildingSimpleInfoResult>