From 1a3b2068d9681dd6bd43040e27a6bf1e68a33881 Mon Sep 17 00:00:00 2001 From: lunaticbum Date: Thu, 20 Mar 2025 18:08:33 +0900 Subject: [PATCH] ... --- .../kotlin/kr/lunaticbum/back/lun/controllers/BlogController.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/kotlin/kr/lunaticbum/back/lun/controllers/BlogController.kt b/src/main/kotlin/kr/lunaticbum/back/lun/controllers/BlogController.kt index e6cc5dc..b124c56 100644 --- a/src/main/kotlin/kr/lunaticbum/back/lun/controllers/BlogController.kt +++ b/src/main/kotlin/kr/lunaticbum/back/lun/controllers/BlogController.kt @@ -149,12 +149,14 @@ class BlogController() { try { var addrs = GeocodingApi.reverseGeocode(GeoApiContext.Builder().apiKey(it).build(), LatLng(this?.firstPostLat!!,this?.firstPostLon!!)).await() this.firstAddress = addrs.first().formattedAddress + postManageg.save(this) } catch (e: Exception) {} } if (this?.modifyAddress?.length ?: 0 < 4){ try { var addrs = GeocodingApi.reverseGeocode(GeoApiContext.Builder().apiKey(it).build(), LatLng(this?.modifyLat!!,this?.modifyLon!!)).await() this.modifyAddress = addrs.first().formattedAddress + postManageg.save(this) } catch (e: Exception) {} } }