/** @return time difference between first and last point of segment */ public Period getPeriod() { return GPSHelperFunctions.getTimeDifference(points.get(0), points.get(points.size() - 1)); }