The law requires that you ride in the bicycle lane or if there is no bike lane, as close as practicable to the right hand curb or edge of the roadway . There are a few exceptions, including where reasonably necessary to avoid any condition or potential conflict, including, but not limited to, a fixed or moving object, parked or moving vehicle, bicycle, pedestrian, anima, surface hazard, turn lane, or substandard width lane which makes it unsafe to continue along the curb, edge or bicycle lane. The other exception to this rule is when overtaking and passing another bicycle or vehicle proceeding in the same direction. A few other exceptions are when preparing for a left turn or if the lane is too narrow to share safely with another vehicle. The last exception is when the bicyclist is traveling at or near the same speed as other traffic.