Given a set of geo coordinates and a geo line (KML file or GeoJSON data) is there an API or algorithm that returns a line that goes along that highway as much as possible while stopping at each coordinate on the way?
With most APIs the driving directions favor the shortest route between points.
What I'm looking for is a route that is not necessarily the shortest but that goes along a particular highway as much as possible.