com.graphhopper.routing.template.AbstractRoutingTemplate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of graphhopper Show documentation
Show all versions of graphhopper Show documentation
GraphHopper is a fast and memory efficient Java road routing engine
working seamlessly with OpenStreetMap data.
The newest version!
package com.graphhopper.routing.template;
import com.graphhopper.storage.index.QueryResult;
import com.graphhopper.util.PointList;
import java.util.List;
/**
*
* @author Peter Karich
*/
public class AbstractRoutingTemplate
{
// result from lookup
protected List queryResults;
protected PointList getWaypoints()
{
PointList pointList = new PointList(queryResults.size(), true);
for (QueryResult qr : queryResults)
{
pointList.add(qr.getSnappedPoint());
}
return pointList;
}
}