var position = new google.maps.LatLng(position.coords.latitude, position.coords.longitude); var geocoder= new google.maps.Geocoder(); var address;` geocoder.geocode({ 'latLng': position`var position = new google.maps.LatLng(po
因此,我尝试使用geocoder.getFromLocationName()在kotlin中将文本地址转换为坐标。import android.location.Geocoder
try {
valresult = geocoder.getFromLocationName(club.location, 1) // it gets hung here before th