Discard gps data points from session

Is it possible to examine gps position data and decide whether or not is should be stored in the activity recording?

I'm wanting to do a bit of filtering in certain cases, but it isn't clear how I would go about this. Ideas?