Search in sources :

Example 1 with DistanceCalcEuclidean

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;
}
Also used : DistanceCalcEuclidean(com.graphhopper.util.DistanceCalcEuclidean) Snap(com.graphhopper.storage.index.Snap)

Aggregations

Snap (com.graphhopper.storage.index.Snap)1 DistanceCalcEuclidean (com.graphhopper.util.DistanceCalcEuclidean)1