How do I create the landscape at runtime?

I found these really useful links:

I am currently using UProceduralMeshComponent but may switch to RuntimeMeshComponent in future.