sn_get_details_by_lau: Gets details for a single city

View source: R/sn_get_details.R

sn_get_details_by_lauR Documentation

Gets details for a single city

Description

Gets details for a single city

Usage

sn_get_details_by_lau(
  gisco_id,
  additional_properties = c("P39", "P509", "P140", "P611", "P411", "P241", "P410", "P97",
    "P607", "P27", "P172"),
  lau_year = 2020,
  export_format = NULL,
  collapse_lists = FALSE,
  language = tidywikidatar::tw_get_language(),
  search_language = NULL,
  response_language = tidywikidatar::tw_get_language(),
  check_named_after_original = TRUE,
  check_named_after = TRUE,
  checked_df = NULL,
  manual_check_columns = FALSE,
  connection = NULL,
  connection_search = NULL,
  base_folder = "sn_data",
  streets_sf = NULL,
  street_names_df = NULL,
  cache = TRUE,
  overwrite_cache = FALSE,
  disconnect_db = TRUE
)

Arguments

gisco_id

A gisco identifier of a European LAU.

additional_properties

Defaults to a vector of Wikidata properties, with common properties of interest for humans. Some basic properties related to birth, death, and occupation are included by default.

export_format

Defaults to NULL. If given, it exports outputs in the given format. Available values include "csv" and "geojson".

search_language

Defaults to NULL, guessed based on country.

response_language

Defaults to 'tidywikidatar::tw_get_language()'. Used for defining the language in which label and description are returned.

check_named_after_original

Defaults to FALSE. If TRUE, a search is performed on the original street name. If the first result has values for the property "named after", this takes precedence over other methods.

check_named_after

Defaults to FALSE. If TRUE, a search is performed on the "cleaned" name of the street. If the result is a street, road, square, or similar, and this has values for the property "named after", this is kept instead of the standard method.

checked_df

Defaults to NULL. If given, a data frame with a 'street_name' and 'named_after_id' column. Takes precedence over searches.

streets_sf

Defaults to NULL. If given, used to speed up processing. Must be an sf object such as the ones output by 'll_osm_get_roads()'. Passed to 'll_osm_get_lau_streets()'.

street_names_df

Defaults to NULL. If TRUE, must be a data frame with two columns, named "street_name" and "name_clean" respectively. If given, these are passed directly to the search routine. Useful when name cleaning provided by the package is not satisfying, e.g. in places such as some Belgian cities where street names are given in more than one language.

Examples


gisco_id <- "DE_11000000"

giocomai/streetnamer documentation built on Oct. 14, 2023, 6:27 p.m.