ny_geo: Geo

Description Usage Arguments

View source: R/geo.R

Description

The Geographic API extends the Semantic API, using a linked data approach to enhance location concepts used in The New York Times' controlled vocabulary and data resources which combine them with the GeoNames database, an authoritative and free to use database of global geographical places, names and features.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
ny_geo(
  name = NULL,
  longitude = NULL,
  latitude = NULL,
  ne = NULL,
  sw = NULL,
  elevation = NULL,
  filter = NULL,
  since = NULL,
  until = NULL,
  facets = FALSE,
  sort = NULL,
  pages = 1
)

Arguments

name

A displayable name for the specified place.

longitude, latitude

Coordinates of the specified place.

sw, ne

Southwest and Northeast, used in combination with longitude and latitude to form a bounding box.

elevation

The elevation of the specified place, in meters.

filter

Filters search results based on the facets provided. For more information on the values you can filter on, see facets.

since, until

Date range as Date objects.

facets

When facets is set to TRUE, a count of all facets will be included in the response.

sort

Sorts your results on the fields specified.

pages

Number of pages of results to retrieve


news-r/nytimes documentation built on Feb. 28, 2020, 4:49 a.m.