ox_graph_from_place: Download a street network for a named place

View source: R/download.R

ox_graph_from_placeR Documentation

Download a street network for a named place

Description

Geocodes query with ox_geocode() and downloads the street network within the bounding box of the matched place.

Usage

ox_graph_from_place(query, network_type = "drive")

Arguments

query

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

network_type

One of "drive", "walk", "bike" or "all".

Value

An osm_graph.

Examples


g <- ox_graph_from_place("Olinda, Brazil", network_type = "drive")


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