POST api/building/getroundinfo

查询小区周边信息,如:学校、菜市场、银行等,不包括地铁和公交

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

Request 信息

URI 参数

None.

Body 参数

RoundInfoModel
名称说明数据类型附加信息
BuildingId

小区id

integer

Required

GisLat

纬度

decimal number

Required

GisLng

经度

decimal number

Required

City

城市

string

Required

Token

token

string

Required

Platform

string

None.

Request 数据格式

application/json, text/json

示例:
{
  "BuildingId": 1,
  "GisLat": 2.0,
  "GisLng": 3.0,
  "City": "sample string 4",
  "Token": "sample string 5",
  "Platform": "sample string 6"
}

application/xml, text/xml

示例:
<RoundInfoModel 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 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>
  <BuildingId>1</BuildingId>
  <GisLat>2</GisLat>
  <GisLng>3</GisLng>
</RoundInfoModel>

application/x-www-form-urlencoded

示例:

Response 信息

输出返回说明

RoundInfoResult
名称说明数据类型附加信息
RoundInfos

周边信息列表

Collection of RoundInfo

None.

ErrorCode

API错误码

APIErrorCode

None.

Msg

附带消息

string

None.

Response 返回数据格式

application/json, text/json

示例:
{
  "RoundInfos": [
    {
      "Type": "sample string 1",
      "items": [
        {
          "Name": "sample string 1",
          "Dist": 2.0
        },
        {
          "Name": "sample string 1",
          "Dist": 2.0
        }
      ]
    },
    {
      "Type": "sample string 1",
      "items": [
        {
          "Name": "sample string 1",
          "Dist": 2.0
        },
        {
          "Name": "sample string 1",
          "Dist": 2.0
        }
      ]
    }
  ],
  "ErrorCode": 0,
  "Msg": "sample string 1"
}

application/xml, text/xml

示例:
<RoundInfoResult 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>
  <RoundInfos>
    <RoundInfoResult.RoundInfo>
      <Type>sample string 1</Type>
      <items>
        <RoundInfoResult.Item>
          <Dist>2</Dist>
          <Name>sample string 1</Name>
        </RoundInfoResult.Item>
        <RoundInfoResult.Item>
          <Dist>2</Dist>
          <Name>sample string 1</Name>
        </RoundInfoResult.Item>
      </items>
    </RoundInfoResult.RoundInfo>
    <RoundInfoResult.RoundInfo>
      <Type>sample string 1</Type>
      <items>
        <RoundInfoResult.Item>
          <Dist>2</Dist>
          <Name>sample string 1</Name>
        </RoundInfoResult.Item>
        <RoundInfoResult.Item>
          <Dist>2</Dist>
          <Name>sample string 1</Name>
        </RoundInfoResult.Item>
      </items>
    </RoundInfoResult.RoundInfo>
  </RoundInfos>
</RoundInfoResult>