Find all features which enclose a given point, and optionally match specific 'key'-'value' pairs. This function is not intended to be combined with add_osm_feature, rather is only to be used in the sequence opq_enclosing -> opq_string -> osmdata_xml (or other extraction function). See examples for how to use.
opq_enclosing( lon = NULL, lat = NULL, key = NULL, value = NULL, enclosing = "relation", timeout = 25 )
Longitude of desired point
Latitude of desired point
(Optional) OSM key of enclosing data
(Optional) OSM value matching 'key' of enclosing data
Either 'relation' or 'way' for whether to return enclosing objects of those respective types (where generally 'relation' will correspond to multipolygon objects, and 'way' to polygon objects).
It may be necessary to increase this value for large queries, because the server may time out before all data are delivered.