Skip to contents

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

if (FALSE) { # interactive()
g <- ox_graph_from_place("Olinda, Brazil", network_type = "drive")
}