View source: R/block_from_gps.R
block_from_gps | R Documentation |
This function extracts CDFW block ids from a list of GPS coordinates.
block_from_gps(lat_dd, long_dd)
lat_dd |
Latitude in decimal degrees |
long_dd |
Longitude in decimal degrees |
Block id
# Extract block ids
# The second to last coordinate is purposefully incomplete
# The last coordinate is purposefully outside the block area
lat_dd <- c(33.338592, 35.551473, 36.716016, NA, 36.716016)
long_dd <- c(-118.310696, -121.108906, -121.820242, -121.820242, -130)
block_from_gps(lat_dd=lat_dd, long_dd=long_dd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.