a5_spherical_cap: Cells within a great-circle radius

View source: R/traversal.R

a5_spherical_capR Documentation

Cells within a great-circle radius

Description

Returns all cells whose centres fall within a great-circle distance of a given cell's centre.

Usage

a5_spherical_cap(cell, radius)

Arguments

cell

A single a5_cell value.

radius

Numeric scalar, great-circle radius in metres.

Value

A compacted a5_cell vector.

See Also

a5_grid_disk() for hop-based selection.

Examples

cell <- a5_lonlat_to_cell(-3.19, 55.95, resolution = 8)
a5_spherical_cap(cell, radius = 1000)

a5R documentation built on March 26, 2026, 5:10 p.m.