Measuring Latitude and Longitude accuracy

Hi I'm just learning how to use R in school and I want to create a map using geocode. How do I get a more precise latitude and longitude? For example, when I type in

geocode("the white house")
Source : https://maps.googleapis.com/maps/api/geocode/json?address=the+white+house&key=xxx

A tibble: 1 x 2

lon   lat


1 -77.0 38.9

I have looked at some examples on YouTube and they have more numbers listed after the decimal. What command do I need to use to get a more precise latitude and longitude?

Thank you for any help!

You may be getting fooled by the print method of tibbles rounding the output. The full precision is still available but not displayed. Here is an example.

library(tibble)
DATA <- tibble(A = 1.234567, B =9.87654)
DATA
#> # A tibble: 1 x 2
#>       A     B
#>   <dbl> <dbl>
#> 1  1.23  9.88
as.data.frame(DATA)
#>          A       B
#> 1 1.234567 9.87654

Created on 2019-05-09 by the reprex package (v0.2.1)

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.