trajectory analysis, trajectory distance interface added.