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/RtmptIjaaX/file16289df16e495.csv
#> If file is larger than 8 MB, it must be splitted #> Size is : 73 bytes
#> SuccessOKSuccess: (200) OK
#> # A tibble: 3 x 19 #> z longitude latitude result_latitude result_longitude result_label #> <dbl> <dbl> <dbl> <dbl> <dbl> <chr> #> 1 -0.00557 2.28 48.8 48.8 2.28 39 a Quai A… #> 2 0.622 2.38 48.8 48.8 2.38 64 Allée de… #> 3 1.15 2.31 48.9 48.9 2.31 51 Avenue d… #> # … 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>