Hi,
I am looking to return the lat and long of a geoshape centroid from my survey form. Essentially I want to pass the centroid lat and long to what3words for reverse geocoding. Then the what3words result would populate a note on the survey. I have seen
https://developers.arcgis.com/rest/analysis/api-reference/find-centroids.htm
but am not really sure how to implement it. Would somebody be able to point me in the right direction, or able to share some sample Javascript to accomplish this please?
Many thanks