@Override public Measure<Double, Length> getDistanceOfPath(Iterable<Point> path) throws IllegalArgumentException { if (!snapshot.isPresent()) { updateSnapshot(); } return snapshot.get().getDistanceOfPath(path); }
@Override public RoadPath getPathTo(Point from, Point to, Unit<Duration> timeUnit, Measure<Double, Velocity> speed, GeomHeuristic heuristic) { if (!snapshot.isPresent()) { updateSnapshot(); } return snapshot.get().getPathTo(from, to, timeUnit, speed, heuristic); }