reverse geocode a data frame

reverse_geocode_tbl(tbl, longitude, latitude)

Arguments

tbl

name of the tibble

longitude

name of the longitude column

latitude

name of the latitude column

Value

an augmented tibble with addresses

Examples


table_reverse <- tibble::tibble(
x = c(2.279092, 2.375933,2.308332),
y = c(48.84683, 48.84255, 48.85032),
z = rnorm(3)
)

reverse_geocode_tbl(tbl = table_reverse, longitude = x, latitude = y)
#> Writing tempfile to.../tmp/RtmpA9JOPQ/file154372ab1ba1e.csv
#> If file is larger than 50 MB, it must be splitted
#> Size is : 73 bytes
#> SuccessOKSuccess: (200) OK
#> # A tibble: 3 × 19
#>        z longitude latitude result_latitude result_longitude result_label       
#>    <dbl>     <dbl>    <dbl>           <dbl>            <dbl> <chr>              
#> 1 0.0934      2.28     48.8            48.8             2.28 39a Quai André Cit…
#> 2 1.81        2.38     48.8            48.8             2.38 64 Allée de Bercy …
#> 3 1.01        2.31     48.9            48.9             2.31 51 Avenue de Ségur…
#> # … with 13 more variables: result_distance <int>, result_type <chr>,
#> #   result_id <chr>, result_housenumber <chr>, result_name <chr>,
#> #   result_street <chr>, result_postcode <chr>, result_city <chr>,
#> #   result_context <chr>, result_citycode <chr>, result_oldcitycode <lgl>,
#> #   result_oldcity <lgl>, result_district <chr>