Description Usage Arguments Value Examples
Check whether two H3 (hexagon) indexes are neighbors (share an edge)
1 | h3_indexes_are_neighbors(origin_h3_index, destination_h3_index)
|
origin_h3_index |
H3 index (origin); character vector |
destination_h3_index |
H3 index (destination); character (single value) |
boolean vector
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.