POST api/school/getareaschool

获取地图学校(不带幢数)

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

Request 信息

URI 参数

None.

Body 参数

参数

WebMapModel
名称说明数据类型附加信息
SLat

起始经度

decimal number

None.

SLng

起始纬度

decimal number

None.

ELat

结束经度

decimal number

None.

ELng

结束纬度

decimal number

None.

pageSize

数据容量

integer

None.

pageIndex

页索引

integer

None.

RefDate

页面刷新时间 防止列表出现重复数据

string

None.

Type

学校类别 (不传表示不限类别)

integer

None.

ShowBuldingUnit

是否显示幢数

integer

None.

City

城市

string

Required

Token

token

string

Required

Platform

string

None.

Request 数据格式

application/json, text/json

示例:
{
  "SLat": 1.0,
  "SLng": 2.0,
  "ELat": 3.0,
  "ELng": 4.0,
  "pageSize": 5,
  "pageIndex": 6,
  "RefDate": "sample string 7",
  "Type": 1,
  "ShowBuldingUnit": 8,
  "City": "sample string 9",
  "Token": "sample string 10",
  "Platform": "sample string 11"
}

application/xml, text/xml

示例:
<WebMapModel 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 11</Platform>
  <Token xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 10</Token>
  <City xmlns="http://schemas.datacontract.org/2004/07/API.Models.API">sample string 9</City>
  <ELat>3</ELat>
  <ELng>4</ELng>
  <RefDate>sample string 7</RefDate>
  <SLat>1</SLat>
  <SLng>2</SLng>
  <ShowBuldingUnit>8</ShowBuldingUnit>
  <Type>1</Type>
  <pageIndex>6</pageIndex>
  <pageSize>5</pageSize>
</WebMapModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

结果

WebAreaBuildingResult
名称说明数据类型附加信息
Building

小区(或学校)信息

Collection of WebAreaBuilding

None.

Unit

幢数(小区模式下有效)

Collection of WebHotSpot

None.

ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

示例:
{
  "Building": [
    {
      "id": 1,
      "BuildingName": "sample string 2",
      "BuildAvgPrice": 3.1,
      "RandAvgPrice": "sample string 4",
      "TrackEposStr": "sample string 5",
      "EposX": 1,
      "EposY": 1,
      "GisLat": 6.1,
      "GisLng": 7.1
    },
    {
      "id": 1,
      "BuildingName": "sample string 2",
      "BuildAvgPrice": 3.1,
      "RandAvgPrice": "sample string 4",
      "TrackEposStr": "sample string 5",
      "EposX": 1,
      "EposY": 1,
      "GisLat": 6.1,
      "GisLng": 7.1
    }
  ],
  "Unit": [
    {
      "id": 1,
      "HotName": "sample string 2",
      "ShortHotName": "sample string 3",
      "EposX": 1,
      "EposY": 1,
      "GisLat": 4.1,
      "GisLng": 5.1
    },
    {
      "id": 1,
      "HotName": "sample string 2",
      "ShortHotName": "sample string 3",
      "EposX": 1,
      "EposY": 1,
      "GisLat": 4.1,
      "GisLng": 5.1
    }
  ],
  "ErrorCode": 0,
  "Msg": "sample string 1"
}

application/xml, text/xml

示例:
<WebAreaBuildingResult 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 1</Msg>
  <Building>
    <WebAreaBuildingResult.WebAreaBuilding>
      <BuildAvgPrice>3.1</BuildAvgPrice>
      <BuildingName>sample string 2</BuildingName>
      <EposX>1</EposX>
      <EposY>1</EposY>
      <GisLat>6.1</GisLat>
      <GisLng>7.1</GisLng>
      <RandAvgPrice>sample string 4</RandAvgPrice>
      <TrackEposStr>sample string 5</TrackEposStr>
      <id>1</id>
    </WebAreaBuildingResult.WebAreaBuilding>
    <WebAreaBuildingResult.WebAreaBuilding>
      <BuildAvgPrice>3.1</BuildAvgPrice>
      <BuildingName>sample string 2</BuildingName>
      <EposX>1</EposX>
      <EposY>1</EposY>
      <GisLat>6.1</GisLat>
      <GisLng>7.1</GisLng>
      <RandAvgPrice>sample string 4</RandAvgPrice>
      <TrackEposStr>sample string 5</TrackEposStr>
      <id>1</id>
    </WebAreaBuildingResult.WebAreaBuilding>
  </Building>
  <Unit>
    <WebAreaBuildingResult.WebHotSpot>
      <EposX>1</EposX>
      <EposY>1</EposY>
      <GisLat>4.1</GisLat>
      <GisLng>5.1</GisLng>
      <HotName>sample string 2</HotName>
      <ShortHotName>sample string 3</ShortHotName>
      <id>1</id>
    </WebAreaBuildingResult.WebHotSpot>
    <WebAreaBuildingResult.WebHotSpot>
      <EposX>1</EposX>
      <EposY>1</EposY>
      <GisLat>4.1</GisLat>
      <GisLng>5.1</GisLng>
      <HotName>sample string 2</HotName>
      <ShortHotName>sample string 3</ShortHotName>
      <id>1</id>
    </WebAreaBuildingResult.WebHotSpot>
  </Unit>
</WebAreaBuildingResult>