Search functions (e.g. mz_search
) return identification numbers,
or gid
s. Use mz_place
to retrieve more details about the place.
See https://mapzen.com/documentation/search/place/ for details. This
function is generic, and can take a character vector of IDs, or a
mapzen_geo_list
as returned by mz_search
and friends.
mz_place(ids, ..., api_key = NULL)# S3 method for character
mz_place(ids, ..., api_key = NULL)
# S3 method for mapzen_geo_list
mz_place(ids, ..., gid = "gid", api_key = NULL)
A character vector of gids (see details), or a mapzen_geo_list
Arguments passed on to methods
Your Mapzen API key. The default is to look for the key within the provider information that was set up with `mz_set_host`.
The name of the gid
field to use. Search results may include,
in addition to the gid
for the search result itself (the default), the
gid
s for the country, region, county, locality and neighborhood.