A Bradford man has avoided jail for having sex with a woman where they could be "easily seen".