search_geodata: Search available datasets for pattern matches

View source: R/search_geodata.R

search_geodataR Documentation

Search available datasets for pattern matches

Description

search_geodata searches for matches to argument pattern within the names of all available datasets on the geo-information platform of the Swiss Confederation (https://data.geo.admin.ch/).

Usage

search_geodata(
  pattern,
  fuzzy_support = FALSE,
  include_links = FALSE,
  available_geodata
)

Arguments

pattern

character string containing a regular expression to be matched in the dataset names on the geo-information platform.

fuzzy_support

if TRUE, approximate matches are included.

include_links

if TRUE, the links to available resources are included in the results.

available_geodata

result of a previous call with get_available_geodata. Optional argument.

Details

The acquisition and use of data or services is free of charge, subject to the provisions on fair use (see https://www.geo.admin.ch/terms-of-use).

Value

A tibble with matching datasets and their retrieval function. The links to available resources are included if include_links = TRUE.

Examples

# Show all available datasets for the search term 'Agglomerations'
search_geodata(pattern = "Agglomeration")

# Show all available datasets of the Federal Office for the Environment (BAFU)
search_geodata(pattern = "BAFU")


zumbov2/swissgd documentation built on Nov. 22, 2022, 9:30 p.m.