Im working on an app that shows different POIs in between location and destination on a route.
Together with a map, there is a list view representation of the route, with Location showing first (New York for example), Destination in the end (Let's say Boston) and POIs in between.
But if I add another location in between , lets say Chicago, and then continue adding those POIs, is there any way to know if an added POI is on a route between New York and Chicago, or it is between Chicago and Boston?
So is there a way of telling if a coordinate is between two other coordinates, but not in the general space, but on that route exactly?
Or, is there a way of knowing how far is the POI from the starting point of the route?