Many keyword values are "glocations". Here you write a file of lat-lon coordinates for every unique glocation keyword.

nyt_query_mapquest_api(
  unnested_df_values_fixed,
  mapquest_folder = "mapquest",
  api_key = Sys.getenv("MAPQUEST_KEY"),
  nyt_user_agent = Sys.getenv("NYT_USER_AGENT")
)

Arguments

unnested_df_values_fixed

unnested df containing all glocation keywords

mapquest_folder

folder where to write mapquest output

api_key

"MAPQUEST_KEY" environmental variable

nyt_user_agent

"NYT_USER_AGENT" environmental variable

Value

file of glocation keywords and their lat-lon coordinates

Examples

if (FALSE) { nyt_query_mapquest_api(unnested_df_values_fixed) }