validate_coord: Check whether a coordinate pair is within the polygon of a...

View source: R/geography.R

validate_coordR Documentation

Check whether a coordinate pair is within the polygon of a park unit

Description

validate_coord() compares a coordinate pair (in decimal degrees) to the polygon for a park unit as provided through the NPS Units rest services. The function returns a value of TRUE or FALSE.

Usage

validate_coord(unit_code, lat, lon)

Arguments

unit_code

is the four-character unit code as designated by NPS.

lat

latitude, in decimal degrees.

lon

longitude, in decimal degrees.

Examples

## Not run: 
validate_coord("OBRI", 36.07951, -84.65610)

## End(Not run)

nationalparkservice/IMDQC documentation built on March 29, 2025, 10:54 p.m.