小区周边配套接口

小区周边配套接口

功能描述:根据城市名、小区名获取小区周边的酒店、地铁、公交、小学、超市、医院等配套信息。

申请试用:

支持请求协议:http

请求方式:get

支持格式:json

请求参数:

  • 参数 数据类型 是否必填 说明
  • cityNameString必填城市名
  • residentialAreaNameString必填小区名
  • distanceInt选填距离(单位:米)
  • key_idString必填数字验证签名ID
  • access_signatureString必填数字验证签名
  • time_stampLong必填时间戳

返回参数

  • 参数 数据模型 说明
  • Successbool是否成功
  • DataJSON返回数据
  • nameString名称
  • addressString地址
  • querytypeString类型(酒店、地铁、公交、小学、超市、医院)
  • modeString模式
  • durationString时间(单位:分钟)
  • distanceString距离

返回数据样式

{
    Success: true, 
    Data: {
        hotel: [
            {
                name: "7天连锁酒店(西直门展览馆店)", 
                address: "北京市西城区车公庄大街北里甲56号(五栋大楼A座西北角)", 
                querytype: "酒店", 
                trafficInfos: [
                    {
                        mode: "walking", 
                        duration: "3", 
                        distance: "184"
                    }
                ]
            }
        ], 
        metro: [
            {
                name: "车公庄西", 
                address: "地铁6号线", 
                querytype: "地铁", 
                trafficInfos: [
                    {
                        mode: "walking", 
                        duration: "5", 
                        distance: "328"
                    }
                ]
            }
        ], 
        transit: [
            {
                name: "北京市政交通一卡通公交充值点(西直门外南路)", 
                address: "西直门汽车站附近", 
                querytype: "公交", 
                trafficInfos: [
                    {
                        mode: "walking", 
                        duration: "17", 
                        distance: "1027"
                    }, 
                    {
                        mode: "transit", 
                        duration: "22", 
                        distance: "1333"
                    }
                ]
            }
        ], 
        primary: [
            {
                name: "北京进步小学", 
                address: "北京市西城区西直门外南大街榆树馆胡同1号", 
                querytype: "小学", 
                trafficInfos: [
                    {
                        mode: "walking", 
                        duration: "7", 
                        distance: "452"
                    }, 
                    {
                        mode: "transit", 
                        duration: "14", 
                        distance: "865"
                    }
                ]
            }
        ], 
        supermarket: [
            {
                name: "多润发超市", 
                address: "西城区车公庄大街展览馆路12-6(近车公庄西地铁站东北口)", 
                querytype: "超市", 
                trafficInfos: [
                    {
                        mode: "walking", 
                        duration: "4", 
                        distance: "262"
                    }
                ]
            }
        ], 
        hospital: [
            {
                name: "北京大学人民医院", 
                address: "北京市西城区西直门南大街11号", 
                querytype: "医院", 
                trafficInfos: [
                    {
                        mode: "walking", 
                        duration: "20", 
                        distance: "1222"
                    }, 
                    {
                        mode: "transit", 
                        duration: "16", 
                        distance: "987"
                    }
                ]
            }
        ]
    }
}