nyt_query_mapquest_api: Query Mapquest API for lat-lon coordinates

Description Usage Arguments Value Examples

View source: R/07-query-mapquest.R

Description

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

Usage

1
2
3
4
5
6
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

1
2
3
4
## Not run: 
nyt_query_mapquest_api(unnested_df_values_fixed)

## End(Not run)

seanangio/nytindia documentation built on Dec. 22, 2021, 11:15 p.m.