Geoshape Centroid

160
1
03-28-2022 02:23 AM
CherylWheeler11
New Contributor III

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

1 Reply
DimiKPT
New Contributor

Hi,

I was wondering if anyone has found a possible workaround for that? I am trying to find a way to generate the centroid coordinates of a geoshape created in Survey123 field app. Any ideas including the pulldata("@javascript" custom query would be super useful.