I have a question about measuring distances for points in separate segments. As you can see in the attached picture, the green line is my polyline which I want to divide into four segments A, B,C,D. I want to measure the distance of each point in a particular segment to the polyline. I don't want the distance to overlap in the sense that a point in segment A should not take its measurement in segment B or C or D. A point in segment A, for example, should take its measurement at any place on the polyline that falls in segment A only. I must add that the the points and the polyline are separate features. Also, the red lines are just to show you how I want my segments to be. So first of all, I want to know how I can divide the polyline and the points into segments. Then I want to measure the distance of each point in a particular segment to the polyline. Just to remind that, the polyline and the points are two separate features.
I am using ArcGIS Desktop (ArcMap 10.8)