CGNDBQueryAPI: Construct query for CGNDB API

Description Usage Arguments Details Value Examples

Description

Returns a URL that can be used to query the Canadian Geographic Names Database using the online API

Usage

1

Arguments

terms

a list of named search terms, see details for more info

format

Character string; one of c('json', 'html', 'csv', 'kml', 'gml', 'wkt'). Determines the format of the results returned by the API.

Details

The terms parameter must be a list with the names corresponding to search parameters of the CGNDB. More details about search terms can be found at http://www.nrcan.gc.ca/earth-sciences/geography/place-names/tools-applications/9249 Common codes include q, bbox, lat, lon, radius, category, theme, and province

Theme codes allow for only a certain category of feature to be returned. The theme codes are: 979 Water Feature 980 Volcanic Feature 981 Undersea and Maritime Feature 982 Underground Feature 983 Unclassified 984 Terrain Feature 985 Populated Place 986 Ice and Snow Feature 987 Feature Associated with Vegetation 988 Constructed Feature 989 Administrative Area

Value

Character string; a URL-encoded search string

Examples

1
2
CGNDBQueryAPI()
CGNDBQueryAPI(list(q='Ottawa', theme=985), format='csv')

ECCC-MSC/Basin-Delineation documentation built on June 9, 2019, 7:29 p.m.