use of com.graphhopper.util.DistanceCalcEuclidean in project graphhopper by graphhopper.
the class HeadingResolverTest method createSnap.
private Snap createSnap(EdgeIteratorState closestEdge, double lat, double lon, int wayIndex) {
Snap snap = new Snap(lat, lon);
snap.setClosestEdge(closestEdge);
snap.setSnappedPosition(Snap.Position.EDGE);
snap.setWayIndex(wayIndex);
snap.calcSnappedPoint(new DistanceCalcEuclidean());
return snap;
}
Aggregations