"To access segments within a Route, you need to enable the respective functionality in the local movement strategy (usually: calculateRouteSegments=true)");
}
returnrouteSegments.get(currentSegmentIndex);
}
@Override
publicList<RouteSegment>getSegmentsAhead(){
if(!hasSegmentInformation()){
thrownewUnsupportedOperationException(
"To access segments within a Route, you need to enable the respective functionality in the local movement strategy (usually: calculateRouteSegments=true)");
"To access segments within a Route, you need to enable the respective functionality in the local movement strategy (usually: calculateRouteSegments=true)");
}
returnCollections.unmodifiableList(routeSegments
.subList(0,currentSegmentIndex));
}
/**
* Update the internal location with the given movement speed