Geoshape Centroid

429
2
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

2 Replies
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.

JacobPearse
New Contributor II

Hello,

I was curious if anyone happened to figure out how to get the lat/long of the centroid from a geoshape that is created in Survey123?  This is something that would be quite helpful.

 

Thanks

0 Kudos