North Yorkshire Police said the incidents happened on a National Cycle Network cycle track.