added distanceFilter and heading filter