ox_graph_from_point: Download a street network around a point

View source: R/download.R

ox_graph_from_pointR Documentation

Download a street network around a point

Description

Download a street network around a point

Usage

ox_graph_from_point(point, dist = 1000, network_type = "drive")

Arguments

point

Numeric c(lon, lat).

dist

Buffer half-width in metres (a square bounding box of side 2 * dist is used). Default 1000.

network_type

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

Value

An osm_graph.

Examples


g <- ox_graph_from_point(c(-34.89, -8.05), dist = 800)


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