Geoshape Centroid

03-28-2022 02:23 AM
New Contributor III


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 

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
New Contributor


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.