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) {} } }