How to lerp between landscape material textures based on distance?

I m working on a landscape material and i’m trying to avoid the ugly tiling in the distance. My idea is to have a texture for far distance that is big (not tiled that much or not at all) and at close distance i want my tiled texture that looks great.
All i want is to have something that looks great from far and if i get there it changes to something looking good from close.

221431-mytilingmat.png

Thanks, that helped a lot!