ox_features_from_place: Download features for a named place

View source: R/features.R

ox_features_from_placeR Documentation

Download features for a named place

Description

Geocodes query with ox_geocode() and downloads matching features around it. See ox_features_from_bbox() for the tags format.

Usage

ox_features_from_place(query, tags, dist = 2000)

Arguments

query

A place name, e.g. "Recife, Brazil".

tags

Named list of OSM tag filters.

dist

Search half-width in metres around the geocoded point. Default 2000.

Value

An sf of POINT features.

Examples


ox_features_from_place("Olinda, Brazil", tags = list(amenity = "hospital"))


osmnxr documentation built on Oct. 20, 2026, 1:07 a.m.