Skip to contents

Retrieve Gazetteer Records by Source

Usage

gaz_search_by_source(x, ...)

# S3 method for class 'character'
gaz_search_by_source(x, ...)

# S3 method for class 'numeric'
gaz_search_by_source(x, ...)

Arguments

x

source as free text or sourceID as integer

...

Arguments passed on to gaz_rest_records_by_source

with_geometry

(logical) Add geometries to the result data frame? Default = FALSE

Value

A data frame with Gazetteer entries

See also

Examples

# \donttest{
# Check out all sources
gaz_sources()
#> # A tibble: 725 × 3
#>    sourceID source                                                     sourceURL
#>       <int> <chr>                                                      <chr>    
#>  1        1 SAIL                                                       http://w…
#>  2        2 ASFA thesaurus                                             http://w…
#>  3        4 Nationaal Instituut voor de Statistiek (NIS) / National S… http://s…
#>  4        5 Oosthoek Times Wereldatlas                                 NA       
#>  5        6 Lausch, E. (2000). Atlas van de oceanen: met de dieptekaa… NA       
#>  6        7 (2001). The Times comprehensive atlas of the world. 10th … NA       
#>  7        8 IHO-IOC GEBCO Gazetteer of Undersea Feature Names (2002-1… http://w…
#>  8        9 BIOMARE                                                    http://w…
#>  9       10 (1953). Limits of oceans and seas. 3rd edition. IHO Speci… NA       
#> 10       11 Nomenclature des espaces maritimes/List of maritime areas  NA       
#> # ℹ 715 more rows

# Look up by source name
gaz_search_by_source("Gazetteer of Greenland")
#> Error in FUN(X[[i]], ...): HTTP 503 Service Unavailable.

# Or query by SourceID
gaz_search_by_source(386)
#> Error in httr2::req_perform(.): HTTP 503 Service Unavailable.
# }