ox_settings: Get or set package settings

View source: R/settings.R

ox_settingsR Documentation

Get or set package settings

Description

Configure the Overpass and Nominatim endpoints, HTTP behaviour and caching used by all ⁠ox_*⁠ download functions. Called with no arguments it returns the current settings as a list; called with named arguments it updates them and returns the previous values invisibly.

Usage

ox_settings(...)

Arguments

...

Named settings to update. Recognised names: overpass_url, nominatim_url, user_agent, timeout, max_tries, cache.

Value

A named list of settings (current values, or the previous values invisibly when updating).

Examples

ox_settings()
old <- ox_settings(timeout = 300)
ox_settings(timeout = old$timeout) # restore

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