ox_circuity: Average network circuity

View source: R/metrics.R

ox_circuityR Documentation

Average network circuity

Description

The ratio of total edge length to total straight-line (great-circle for geographic CRS, Euclidean for projected) distance between edge endpoints. A value of 1 means perfectly straight streets; higher values indicate more winding networks.

Usage

ox_circuity(g)

Arguments

g

An osm_graph.

Value

A numeric scalar (>= 1).

Examples

g <- example_osm_graph()
ox_circuity(g)

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