use of com.graphhopper.matching.State in project graphhopper by graphhopper.
the class ExtendedJsonResponseTest method getGpxExtension.
private List<State> getGpxExtension() {
List<State> list = new ArrayList<>();
Snap snap1 = new Snap(-3.4445, -38.9990) {
@Override
public GHPoint3D getSnappedPoint() {
return new GHPoint3D(-3.4446, -38.9996, 0);
}
};
Snap snap2 = new Snap(-3.4445, -38.9990) {
@Override
public GHPoint3D getSnappedPoint() {
return new GHPoint3D(-3.4449, -38.9999, 0);
}
};
list.add(new State(new Observation(new GHPoint(-3.4446, -38.9996)), snap1));
list.add(new State(new Observation(new GHPoint(-3.4448, -38.9999)), snap2));
return list;
}
Aggregations