Class PathMerger

java.lang.Object
com.graphhopper.util.PathMerger

public class PathMerger extends Object
This class merges multiple Path objects into one continuous object that can be used in the ResponsePath. There will be a Path between every waypoint. So for two waypoints there will be only one Path object. For three waypoints there will be two Path objects.

The instructions are generated per Path object and are merged into one continuous InstructionList. The PointList per Path object are merged and optionally simplified.

Author:
Peter Karich, ratrun, Robin Boldt