gaz_search_by_type {mregions2}R Documentation

Retrieve Gazetteer Records by Placetype

Description

Retrieve Gazetteer Records by Placetype

Usage

gaz_search_by_type(x, ...)

## S3 method for class 'character'
gaz_search_by_type(x, ...)

## S3 method for class 'numeric'
gaz_search_by_type(x, ...)

Arguments

x

A place type. Either:

  • (character) The name of a place type.

  • (integer) The typeid of a place type.

...

Arguments passed on to gaz_rest_records_by_type

type

(character) The placetype from gaz_rest_types()

with_geometry

(logical) Add geometries to the result data frame? Default = FALSE

Value

A data frame with Gazetteer entries

See Also

gaz_types()

Examples


# This
gaz_search_by_type("EEZ")

# is the same as
gaz_search_by_type(70)


[Package mregions2 version 1.1.1 Index]