latLngToCell | R Documentation |
Indexes the location at the specified resolution, returning the index of the cell containing the location. This buckets the geographic point into the H3 grid
latLngToCell(lat, lng, resolution)
lat |
latitude |
lng |
longitude |
resolution |
cell resolution |
vector giving the H3 cell for each input lat/lng pair, at the given resolution
latLngToCell(
lat = c(-37.820197, -37.818476)
, lng = c(144.983324, 144.967354)
, resolution = c(12, 12)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.