In my survey I have used the Haversine formula to calculate the distance between two points (the survey point & points in a repeat) - using this blog post
However ideally i want to measure points in one repeat to a point in a different repeat, when i do this it appears to measure to the last geopoint in that repeat (is this correct?)
My example is:
Repeat 1: points around the edge of a building (lets say 4 if its a rectangle, and using the geoshape sum${repeatname} to create a polygon).
Repeat 2: points locating position of electricity poles (lets say there's two in the repeat, at opposite sides of the building).
I want to calculate the distance from each pole to the nearest point of the building. Ideally i'd measure from the repeating points (poles) to one geoshape (building) but i don't think this is possible, so trying a workaround to calculated from point to point.
Any help would be really appreciated!