find_closest_site: Find the closest tide station to an arbitrary...

Description Usage Arguments Examples

View source: R/find_closest_tide_station.R

Description

Calls either forecast_list_sites() or observations_list_sites() and returns the closest site to any lat long point.

Usage

1
find_closest_site(lat, long, site_count = 1, cached_sites = NULL)

Arguments

lat

Decimal latitude

long

Decimal longitude

site_count

Number of sites to return. Defaults to 1. Sorted by distance (closest to furthest away).

cached_sites

A data.frame containing a list of all UK tide stations. The list can be generated by calling get_tidal_stations()

Examples

1
find_closest_site(lat = 53.8059821, long = -1.6057714, site_count = 1, cached_sites = NULL)

simon-tarr/uk.tides documentation built on March 29, 2020, 9:21 p.m.