def geoCodeFormat = {latitude, longitude ->
String geoCode = null
if (latitude && longitude && latitude.trim().size() > 0 && longitude.trim().size() > 0){
geoCode = concat(latitude, ',', longitude)
}
return geoCode
}
"dev_gecode": "geoCodeFormat(fields.Custom_Geolocation__latitude__s, fields.Custom_Geolocation__longitude__s)"
|
Original Fields
|
Transformed Fields
|
||
|---|---|---|---|
|
Name
|
Value
|
Name
|
Value
|
|
Custom_Geolocation__latitude__s
|
26.57
|
geoCode
|
26.57,106.71
|
|
Custom_Geolocation__longitude__s
|
106.71
|
||