View source: R/01_gaz_search.R
gaz_search | R Documentation |
Search in the Marine Regions Gazetteer by names, MRGID or reverse geocode with a pair of WGS84 coordinates x and y
gaz_search(x, ...)
## S3 method for class 'character'
gaz_search(x, ...)
## S3 method for class 'numeric'
gaz_search(x, ..., y = NULL)
## S3 method for class 'sfg'
gaz_search(x, ...)
## S3 method for class 'sf'
gaz_search(x, ...)
## S3 method for class 'sfc'
gaz_search(x, ...)
x |
object to perform the search with. Can be:
|
... |
Arguments passed on to
|
y |
(double) Latitude in WGS84 (Optional) |
A data frame with Gazetteer entries
# Look-up a name in the Gazetteer
gaz_search("North Sea")
# Get the entries of two known MRGID including their geometry
gaz_search(c(14, 17), with_geometry = TRUE)
# Maybe the name is in another language...
gaz_search("Noordzee", language = "nl")
# Get all the records intersecting with the longitude 51.21551 and latitude 2.927
# restricting to some placetypes
gaz_search(x = 2.927, y = 51.21551, typeid = c(255, 259))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.