How do I measure distance to coast?

Edited