高德地图 输入提示 相关地址

<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
    <title>输入提示后查询</title>
    <script type="text/javascript" src="http://webapi.amap.com/maps?v=1.4.15&key=943991f38e4aec19029d284ff4ffac9c&plugin=AMap.Autocomplete,AMap.PlaceSearch"></script>
</head>
<body>
<div id="amapInp">
    <input id="tipinput"/>
</div>
<script type="text/javascript">
    //输入提示
    var autoOptions = {
        city: "青岛市",
        input: "tipinput"
    };
    var auto = new AMap.Autocomplete(autoOptions);
    //构造地点查询类
    AMap.event.addListener(auto, "select", select);//注册监听,当选中某条记录时会触发
    function select(e) {
      console.log(e.poi.district,e.poi.address,e.poi.name);
    }
</script>
</body>
</html>