ox_geocode: Geocode a place or address

View source: R/geocode.R

ox_geocodeR Documentation

Geocode a place or address

Description

Resolve a free-form query to coordinates and metadata using the OpenStreetMap Nominatim service.

Usage

ox_geocode(query, limit = 1)

Arguments

query

A character scalar, e.g. "Recife, Brazil".

limit

Maximum number of results. Default 1.

Value

A tibble with columns display_name, lat, lon, osm_type, osm_id and class.

Examples


ox_geocode("Recife, Brazil")


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