Given a polyline L and a set S of polylines that intersect L. I need to order S based on the distance of each element to the start o L.
For example:
I tried using geometryEngine to find the intersections and calculated the distance of L to each intersection. However this won't work in some specific cases when L forms a curve. What I really needed is to calculate the distance along L to the intersection, but I couldn't find anything in the javascript API that did this.
Is there a better way to accomplish this?