# Get local coordinates for a nearby cell
get_local_ij(origin = '86be8d12fffffff', destination = '86be8d127ffffff')
# Get local coordinates for a donut of nearby cells
destinations <- get_ring(h3_address = '86be8d12fffffff', ring_size = 2)
local_coords <- get_local_ij(origin = rep('86be8d12fffffff', length(destinations[[1]])),
destination = destinations[[1]],
simple = FALSE)
plot(local_coords['destination'], pch = 19) # note origin is (0,0)
Run the code above in your browser using DataLab