There isn’t a route that passes through York city. However, the Tees Valley route isn’t too far away and passes through some towns in North Yorkshire.