The main function to find geocodes, using standard MongoDB queries, with focus on particularly on returing "geometry" documents' coordinates as useful objects (thinking about sfcs for instance).

gc_find(x, collection = "geocoder", full_url, as_sf = TRUE)

Arguments

x

keys and values to return geometries with

collection

set collection from parameter default geocode.

full_url

ability to use gc_find on any mongodb

as_sf

return the results as an sf object.

Value

sf object from MongoDB or mongolite::iterate