geolocate: Geolocate historical toponyms

View source: R/geolocate.R

geolocateR Documentation

Geolocate historical toponyms

Description

This function uses the API for the World Historical Gazeteer to geolocate place names. It takes the place name and region as inputs and returns a data frame with results, primarily the longitude and latitude.

Usage

geolocate(df, place = "place", iso = "iso")

Arguments

df

A data frame with two columns, places names and two-letter ISO codes for regions

place

A column with toponyms in the data frame

iso

A column of ISO codes for regions

Value

A data frame of the geospatial data

Examples

# Search for Paris and Edo (now Tokyo)
example.df <- data.frame("place" = c("Paris","Edo"), "iso" = c("FR","JP"))
geolocate(example.df)

sfhelper documentation built on April 4, 2025, 1:35 a.m.