title: Reverse Geocoding in R
body: <p>I have a set of longitude and latitude coordinates. I am trying to reverse geocode them so I can pull the relevant city/state/zip etc.. information from them.</p>
  <p>I am following directions <a href="https://cran.r-project.org/web/packages/tidygeocoder/vignettes/tidygeocoder.html" rel="nofollow noreferrer">verbatim from this link.</a></p>
  <p>Next, I run the following code based on those directions:</p>
  <pre><code>library(dplyr)
  library(tidygeocoder)
  library(tidyr)
  library(tibble)
  
  ig_test &lt;- structure(list(username = c(&quot;josh123&quot;, &quot;josh123&quot;, 
                              &quot;josh123&quot;, &quot;josh123&quot;, &quot;josh123&quot;, 
                              &quot;josh123&quot;, &quot;josh123&quot;, &quot;josh123&quot;, 
                              &quot;josh123&quot;, &quot;josh123&quot;), latitude = c(41.33236, 
                                                                                      26.35854, 26.487028473857, 26.4322, 26.6318, 26.45134, 41.308313626834, 
                                                                                      41.317706192778, 41.273429336, 41.323491618726), longitude = c(-72.1972399, 
                                                                                                                                                     -81.85934, -81.78814666754, -81.8094, -81.8571, -81.78723, -72.099424945258, 
                                                                                                                                                     -72.199130663742, -72.8137974995, -72.191737225294)), class = &quot;data.frame&quot;, row.names = c(NA, 
                                                                                                                                                                                                                                               -10L))
  
  
  latlong &lt;- reverse_geo(lat = ig_test$latitude, long = ig_test$longitude, method = &quot;osm&quot;, full_results = TRUE)
  </code></pre>
  <p>But when I run <code>latlong</code> I get hit with the following error:</p>
  <p><code>Error in vec_as_location()</code></p>
  <p>Running <code>rlang::last_error()</code> yields:</p>
  <pre><code>Backtrace:
   1. tidygeocoder::reverse_geo(...)
   2. tidygeocoder:::package_inputs(...)
   5. tibble:::`[.tbl_df`(input_unique, !names(input_unique) %in% c(&quot;.uid&quot;))
   6. tibble:::vectbl_as_col_location(...)
   9. vctrs::vec_as_location(j, n, names, call = call)
  </code></pre>