geoCodeFormat
def geoCodeFormat = {latitude, longitude ->
String geoCode = null
if (latitude && longitude && latitude.trim().size() > 0 && longitude.trim().size() > 0){
geoCode = concat(latitude, ',', longitude)
}
return geoCode
}
Transforms Salesforce latitude and longitude fields to geographic coordinate pairs (latitude, longitude).
Example
"dev_gecode": "geoCodeFormat(fields.Custom_Geolocation__latitude__s, fields.Custom_Geolocation__longitude__s)"
Sample Transform
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
For more information:
Was this helpful?