gaz_rest_records_by_lat_long: Get all gazetteer records where the geometry intersects with...

View source: R/01_gaz_search.R

gaz_rest_records_by_lat_longR Documentation

Get all gazetteer records where the geometry intersects with the given latitude and longitude

Description

Get all gazetteer records where the geometry intersects with the given latitude and longitude

Usage

gaz_rest_records_by_lat_long(
  latitude,
  longitude,
  with_geometry = FALSE,
  typeid = NULL
)

Arguments

latitude

(double) A decimal number which ranges from -90 to 90. Coordinates are assumed to be in WGS84

longitude

(double) A decimal number which ranges from -180 to 180. Coordinates are assumed to be in WGS84

with_geometry

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

typeid

(numeric) Restrict to one or more placetypeIDs. Retrieve a list of placetypeIDs with gaz_rest_types()

Value

A data frame with Gazetteer entries

See Also

gaz_rest

Examples


gaz_rest_records_by_lat_long(51.21551, 2.927)
gaz_rest_records_by_lat_long(51.21551, 2.927,
                             with_geometry = TRUE,
                             typeid = c(255, 259))


lifewatch/mregions2 documentation built on April 17, 2025, 10:40 a.m.