ox_example: Load a bundled real-world example network

View source: R/example.R

ox_exampleR Documentation

Load a bundled real-world example network

Description

Loads a small, real street network shipped with the package (downloaded once from OpenStreetMap and simplified) so that examples and vignettes can show real analyses without network access.

Usage

ox_example(name = c("olinda", "manhattan", "rome"))

Arguments

name

Which network to load (all drivable, simplified): "olinda" (historic centre of Olinda, Pernambuco, Brazil), "manhattan" (a square mile of Midtown Manhattan, New York — a strong grid), or "rome" (the organic centro storico of Rome, Italy).

Value

An osm_graph.

Examples

g <- ox_example("olinda")
g
ox_basic_stats(g)

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