This is in reference to an experimental work which we have conducted for evaluating the positional difference between two vehicles, data being collected using Video VBox. We have the latitude/longitude and therefore, the corresponding Northing/Easting values of both the vehicles at the same time instant. For the purpose of my work, I want to know the longitudinal distance between A1 and B1 (Y in the attached figure) and the lateral distance (X) at each time step. The trajectories of both the vehicles at different time steps are also depicted in the figure. In addition, the details of the northing/easting values of both the vehicles are also attached in the excel file.

Is there any toolbox in ArcGis which can directly give the positional differences (both X and Y)? Or, can you help me in providing a way by which these X and Y values can be obtained?

Thanks,

Sanhita

As far as I can see from the data, there is a slight difference in the angle of the path traveled by car A and car B. Which angle should be used to determine the values for X and Y? In this simple case you have both cars traveling in the rather straight line. What happens at a curve or when a car changes direction?

Let's assume that car A defines the direction and the direction is based on the current and next point. In that case you could solve it using the following script.

Result: