View source: R/coast_distance.R
coast_distance | R Documentation |
Wrapper for sf::st_distance to measure distance between input coordinates and Natural Earth Coastline rnaturalearth::ne_coastline of medium resolution. The world coastline set is very coarsely cut to include mainly Swedish coast.
coast_distance(latitude, longitude, epsg = 4326)
latitude |
A decimal latitude. |
longitude |
A decimal longitude. |
epsg |
The EPSG code of the projection, e.g. for WGS84: '4326' (default). Or for SWEREF99TM: '3006'. |
Distance to coast, km.
coast_distance(56.8,14.8)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.