}
}
}
Geometry geom = GeometryUtils.getGeometryFactory().createLineString(coordinates);
this.geometry = PolylineEncoder.createEncodings(geom);
PlanGenerator pgen = new PlanGenerator(null, null);
Itinerary itin = pgen.generateItinerary(path, false);
for (Leg leg : itin.legs) {
walkSteps.addAll(leg.walkSteps);
}
time = (int) (state.getElapsedTimeSeconds());
}