Skip to contents

Retrieve Gazetter Relations by MRGID

Usage

gaz_rest_relations_by_mrgid(
  mrgid,
  with_geometry = FALSE,
  direction = "both",
  type = "all"
)

Arguments

mrgid

(integer) A valid Marine Regions Gazetteer Identifier (MRGID)

with_geometry

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

direction

(character) Must be one of upper, lower, both:

  • upper: lists all parents of the record.

  • lower: lists all childs of the record.

  • both: lists parents and childs of the record (default)

type

(character) Must be one of partof, partlypartof, adjacentto, similarto, administrativepartof, influencedby, all.

Value

A data frame with Gazetteer entries

Examples

if (FALSE) {
gaz_rest_relations_by_mrgid(7378)
}