数据中台


根据地址获取坐标信息,调用高德api

<h5>简要描述</h5> <ul> <li>根据地址获取坐标信息,调用高德api(推荐使用百度,百度API已企业实名访问次数更多)</li> </ul> <h5>请求URL</h5> <ul> <li><code>http://business-serve.ecoweather.cn/aMapWebApi/location</code></li> </ul> <h5>请求方式</h5> <ul> <li>POST </li> </ul> <h5>参数</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">address</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>地址</td> </tr> </tbody> </table> <h5>参数示例</h5> <pre><code>{ "address":"运城市新绛县" }</code></pre> <h5>返回示例</h5> <pre><code>{ "success": true, "code": 20000, "message": "成功", "data": { "responseJson": { "count": "1", "infocode": "10000", "geocodes": [ { "country": "中国", "formatted_address": "山西省运城市新绛县", "city": "运城市", "adcode": "140825", "level": "区县", "building": { "name": [], "type": [] }, "number": [], "province": "山西省", "citycode": "0359", "street": [], "district": "新绛县", "location": "111.224778,35.616288", "neighborhood": { "name": [], "type": [] }, "township": [] } ], "status": "1", "info": "OK" } } }</code></pre> <h5>返回参数说明</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">location</td> <td style="text-align: left;">float</td> <td>经纬度信息</td> </tr> </tbody> </table> <h5>备注</h5> <ul> <li>location:经纬度信息,第一个参数经度,第二个参数纬度</li> </ul>

页面列表

ITEM_HTML