This script works fine,
return First(Intersects(FeatureSetByName($datastore, “DIVISION_WITH_POSTCODE”, [“STATE”], False, $feature)).STATE;
………………….
But, some part of the polyline feature is shared between two state boundaries, and with the above script, the state (sorted alphabetically) is populated. Without the “First” function, it populates the last state (reverse alphabetically). I need to populate the state name based on the origin of the line feature. As from one of the Xander’s posts I got that “…Arcade does not have access to the location where you clicked and will use the entire feature geometry…”. I am wondering is it possible to populate the state based on the origin (starting point) of the polyline feature? Nice if you please can share any sample script or great to have your suggestion. I appreciate any help you can provide.
Kind regards,
Shahriar