Skip to contents

Returns the latitude and longitude of the given vertex

Usage

vertexToLatLng(vertex)

Arguments

vertex

H3 Vertex index

Value

data.frame of the lat/lng coordinates of the input vertex

Examples


vertices <- cellToVertex(
  cell = c(rep("8cbe63562a54bff", 6))
  , vertexNum = c(0L:5L)
  )

vertexToLatLng(vertex = vertices)
#>         lat      lng
#> 1 -37.82030 144.9833
#> 2 -37.82019 144.9833
#> 3 -37.82012 144.9832
#> 4 -37.82016 144.9831
#> 5 -37.82026 144.9831
#> 6 -37.82033 144.9832