Learn R Programming

rmapzen (version 0.5.1)

mapzen_references: Reference lists

Description

Lists of sources, layers, and countries, as they are expected to appear in the mz_search functions. These data objects are provided as a convenience, to be able to quickly and easily look up acceptable values for the optional arguments of search functions. Object names match the argument names for which they are appropriate. So mz_sources provide acceptable arguments for the source argument in mz_search, mz_layers for the layer argument, and mz_countries for the boundary.country argument. Mapzen's documentation (https://github.com/pelias/documentation/) explains more about each of these arguments.

Usage

mz_sources

mz_layers

mz_countries

Arguments

Format

An object of class list of length 8.

An object of class list of length 13.

An object of class list of length 747.

Examples

Run this code
if (FALSE) {
# look for YMCAs in Jamaica:
# Note that boundary.country is supplied via ISO3166 code,
# but mz_countries will look up the code
mz_search("YMCA",
          boundary.country = mz_countries$Jamaica,
          layers = c(mz_layers$venue, mz_layers$address))
}

Run the code above in your browser using DataLab