Skip to contents

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

if (FALSE) { # interactive()
g <- ox_graph_from_point(c(-34.89, -8.05), dist = 800)
}