community
cancel
Showing results for 
Search instead for 
Did you mean: 

Alteryx designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.
Upgrade Alteryx Designer in 10 Steps

Debating whether or not to upgrade to the latest version of Alteryx Designer?

LEARN MORE

Does anyone know the formulat to locate the midpoint between two spatial objects

I want to calculate the midpoint between two spatial objects to create a parameter to send to Bing Maps API as a centerpoint for a map.  I need it to return a Lat/Lon.  Any ideas?
Alteryx Alumni (Retired)

Hi Lanny,

Use a Summarize tool.  Select the field containing the points and use the "Create Centroid" option in the Spatial section.

Cheers,
Brett

Highlighted
Alteryx Alumni (Retired)
Or if there are two separate points in two separate fields, the following formula should work...
ST_Centroid(ST_BoundingRectangle([Point1],[Point2]))
Thanks Brett.  I was able to calculate the centroid.  Had to throw a transpose in between the data and the summarize tool to get it to work.
Labels