View source: R/01_gaz_search.R
gaz_rest_records_by_name | R Documentation |
Get Gazetteer Records for a given name
gaz_rest_records_by_name(
name,
with_geometry = FALSE,
typeid = NULL,
language = NULL,
like = TRUE,
fuzzy = TRUE
)
name |
(character) Term to search in the Marine Regions Gazetteer |
with_geometry |
(logical) Add geometry to the result data frame? Default = FALSE |
typeid |
(numeric) Restrict to one or more placetypeIDs. Retrieve a list of placetypeIDs with |
language |
(character) Restrict to one language. Provide as a 2 digits ISO-639. See ISOcodes::ISO_639_2. |
like |
(logical) Add a '%'-sign before and after the name? (SQL LIKE function). Default = TRUE |
fuzzy |
(logical) Use Levenshtein query to find nearest matches? Default = TRUE |
A data frame with Gazetteer entries
gaz_rest, gaz_rest_records_by_name
gaz_rest_records_by_name("Belgian Exclusive Economic Zone", with_geometry = TRUE)
gaz_rest_records_by_name("Bélgica", language = "es")
gaz_rest_records_by_name("Belgium", typeid = c(350, 351))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.