车主平台调用2.1接口向泊链发送请求消息。通过传送参数经纬度,距离,联盟身份ID等参数来请求泊链查找在该参数范围内的停车场,泊链返回查找到的信息。 地址 :https://beta.bolink.club/unionapi/newpark/queryparks 请求字段: | 名称 | 类型 | 说明 | 是否必传字段 |示例 | | --- | --- | --- | --- | --- | lng |String| 经度 |是 |保留6位小数:如“123.8744332” lat |String |纬度|是 |保留6位小数:如“40.883323” distance |Number| 距离 |是 |单位:米,如1000,查1公里范围内车场 ,取值范围(100-2000)米 union_id |Number| 联盟身份ID |是 |联盟成员ID rand| String| 随机数 |是| 32位以内整数或小数,与上次请求不能重复,否则认为是非法请求,如0.99993232345436 > 示例: > {"data":{"rand":"15516731203246","lng":"123.999999","distance":2000,"union_id":200279,"lat":"32.444444"},"sign":"830498659168C933AE53E32C525EEA46"} 同步返回: | 名称 | 类型 | 说明 | 是否必传字段 |示例 | | --- | --- | --- | --- | --- | state |Number| 状态 |是| 0失败,1成功 count| Number |数量| 是| 返回条数 errmsg |String |提示信息| 是 parks |Json| 车场信息| 是 com_id |Number |泊链车场编号| 是 |308432 name |String| 车场名称| 是| “北京上地三街9号院停车场” address| String| 地址| 是| “北京上地三街9号” phone| String| 联系电话 |是| “13900944433” lng |string| 经度 |是 |保留6位小数:如“123.8744332” lat |String |纬度| 是| 保留6位小数:如“40.883323” total_plot| Number| 总车位数| 是| 120 empty_plot| Number| 空闲车位数 |是| 83 price_desc| String| 价格描述| 是 |2元每小时 remark |String| 备注| 否 |简要说明 park_union_id| Number| 车场所属厂商编号 |否 |200001 park_id |String |第三方车场编号 |是| asw_12121 > 示例:查询成功 > {"parks":[{"com_id":308432,"park_id":"asw_12121","park_union_id":200002,"name":"北京上地大厦停车场2","address":"北京上地三街9号","phone":"18800001111","lng":"123.999999","lat":"32.444444","total_plot":122,"empty_plot":34,"price_desc":"2元每小时","remark":"简要说明"},{"com_id":308828,"park_id":"10006","park_union_id":200301,"name":"北京上地三街9号院停车场","address":"北京上地三街9号","phone":"15258697353","lng":"123.999999","lat":"32.444444","total_plot":122,"empty_plot":199,"price_desc":"2元每小时","remark":"简要说明"},{"com_id":307851,"park_id":"FE9B5A94815311E6A2FD00163E0024D9","park_union_id":200122,"name":"慧泊社区","address":"深圳市光明新区","phone":"18138126297","lng":"123.999999","lat":"32.444444","total_plot":1000,"empty_plot":922,"price_desc":"首3小时5元,之后每1小时1元,最高10元。前1小时不收费","remark":"慧泊社区,懂你的社区"},{"com_id":308831,"park_id":"9df53031757541cd8398f56c3115de61","park_union_id":200301,"name":"测试停车场20180818","address":"20180818测试地址","phone":"15258697353","lng":"123.999999","lat":"32.444444","total_plot":213,"empty_plot":202,"price_desc":"","remark":"测试简历"}],"count":4,"errmsg":"查询成功","state":1} > 查询失败: > {"count":0,"parks":[],"state":0,"errmsg":"附近没有车场"}