geocode_wiki_town: Geocode town name using (German) Wikipedia

Description Usage Arguments Value Functions Examples

View source: R/geocode_wiki.R

Description

A quick and dirty attempt at geocoding places using Wikipedia.

Usage

1
2
3
geocode_wiki_town(name, wiki = "de", digits = 5, delay = 0.1)

geocode_wiki_towns(names, wiki = "de", digits = 5, delay = 1)

Arguments

name, names

Name of town as it appears in its Wikipedia URL, e.g. "Halle_(Saale)" or .

wiki

Identifies Wikipedia language edition, e.g. "de" for German (default) or "en" for English.

digits

Round lat/lon to this many decimal places.

delay

Delay (in seconds) after Wikipedia call.

Value

A list containing the name, latitude and longitude of the requested town. Latitude and longitude are NA if the attempt failed.

Functions

Examples

1
2
3
geocode_wiki_town("Jena")
geocode_wiki_town("Halle_(Saale)") # with underscore
geocode_wiki_town("Nürnberg") # with umlaut

alexanderbrenning/alexmisc documentation built on Jan. 7, 2022, 5:41 p.m.