I have a Calculation to pull data from the nearest point and populate a field. The calculation works in returning a value, but seems to be defaulting to returning the furthest value or even the max (furthest down the list) value rather than the nearest. Any recommendations on how to fix this?
Initial get data points within 500 ft.:
concat("?distance=500&units=esriSRUnit_Foot&inSR=4326&
geometryType=esriGeometryPoint&geometry=",
pulldata("@geopoint",${loc},"x"),",",pulldata("@geopoint",${loc},"y"))
Calculation to return nearest point value:
pulldata("@layer","getValue","attributes.TEXTSTRING",concat(${station},${near_params_b}),"1=1")