h3_indexes_are_neighbors: Check whether two H3 (hexagon) indexes are neighbors (share...

Description Usage Arguments Value Examples

View source: R/h3_edges.R

Description

Check whether two H3 (hexagon) indexes are neighbors (share an edge)

Usage

1
h3_indexes_are_neighbors(origin_h3_index, destination_h3_index)

Arguments

origin_h3_index

H3 index (origin); character vector

destination_h3_index

H3 index (destination); character (single value)

Value

boolean vector

Examples

1
2
3
4
5
coords <- c(37.3615593, -122.0553238)
h3_index <- geo_to_h3(coords)
neighbors <- k_ring(h3_index, 2)

h3_indexes_are_neighbors(neighbors, h3_index)

crazycapivara/h3forr documentation built on Dec. 6, 2020, 5:21 a.m.