Hi all,
can I control the distance between the field worker's location and the surveying feature, for example: the user must be, at maximum, within a distance of 5meter from the surveying feature?
To make sure that the field worker is at the location of the surveying feature.
Yes I do it by passing in the lat long they were supposed to go to from Field Maps. Then I calc the distance from that to where they are in currently from the form. Then I set a constraint on that distance.
Formula for distance is
round(acos(sin(${SampledMidLatitude} * pi() div 180)*sin(${DesignLat} * pi() div 180) + cos(${SampledMidLatitude} * pi() div 180)*cos(${DesignLat} * pi() div 180)*cos((${DesignLong} * pi() div 180)-(${SampledMidLongitude} * pi() div 180))) * 6371000,2)
Hope that helps