get_nearest_polygon: Get nearest polygon

Description Usage Arguments Value Examples

View source: R/get_nearest_polygon.R

Description

gets the nearest polygon from a long lat point in a given SF dataframe

Usage

1
get_nearest_polygon(sf_dataframe, long, lat)

Arguments

sf_dataframe

A dataframe containing polygons to choose from

long

The longitude of the point

lat

The latitude of the point

Value

A 1*N SF dataframe containing the closest polygon

Examples

1
2
3
4
## Not run: 
polygon <- get_nearest_polygon(town, adress_data$longitude, adress_data$latitude)

## End(Not run)

peloyeje/cadastertools documentation built on May 19, 2019, 3:02 a.m.