More than £22m is being invested on a major Yorkshire coastal route over the next 12 months, improving journeys for locals, tourists and businesses.