get date-filtered trajectory distance via ajax