Skip to contents

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

if (FALSE) { # interactive()
ox_features_from_place("Olinda, Brazil", tags = list(amenity = "hospital"))
}