abs(position.getLatitude()) > 0.00001 &&
abs(position.getLongitude()) > 0.00001 &&
position.getTime().getCalendar().get(YEAR) > 1990;
if (valid && previousPosition != null) {
Double speed = position.calculateSpeed(previousPosition);
valid = speed != null && speed < 1500.0 &&
previousPosition.getTime().getTimeInMillis() < position.getTime().getTimeInMillis();
}
if (!valid)