The level crossing in York Road, Haxby will be closed for rail maintenance work.