...
This commit is contained in:
parent
c3d2599754
commit
1a3b2068d9
@ -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) {}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user