| | |
| | | } else { |
| | | setTitleText("选择终点") |
| | | } |
| | | tv_city_name.text = "" |
| | | tv_city_name.text = name |
| | | callDistrict() |
| | | |
| | | tv_sure.clickDelay { |
| | |
| | | |
| | | override fun onPoiSearched(p0: PoiResult?, p1: Int) { |
| | | if (p0?.pois!!.size > 0) { |
| | | tv_city_name.text = p0.pois[0].cityName |
| | | currentPosition = LatLng( |
| | | p0.pois[0].latLonPoint.latitude, |
| | | p0.pois[0].latLonPoint.longitude |
| | |
| | | marker = AMapKit.addMarker(map!!, lat.latitude, lat.longitude, view, "12") |
| | | currentPosition = marker?.position |
| | | moveLisener() |
| | | getAddress(this,currentPosition!!.latitude,currentPosition!!.longitude){ |
| | | tv_city_name.text = it |
| | | } |
| | | } |
| | | } |
| | | |