Rule of thumb: When you are sitting on your saddle and you put the heel of your foot on a pedal that is in the 6 o'clock position your leg will be straight. Then when you ride and put the ball of your foot on the pedal your knee will have a slight bend. This is just a rule of thumb. You can vary the height to suit your comfort.
Where you ride makes no difference and what bars you have make no difference.
Where you ride makes no difference and what bars you have make no difference.