I executed the geocode function which gave latitude and longitude measurements. The few informations I have are the objects name, their provinces, and the country, so I'm not sure about the exactitude of the coordinates.
I would like to know if there is a way with the geocode function to find the detailed address of the object I'm georeferencing from the informations I have?
library(dplyr)
library(tidyr)
library(tidyverse)
library(tidygeocoder)
data <- data %>% mutate(adresse = paste0(name, " ", province, " ", country, sep=""))
data_osm <- data %>% geocode(address = adresse, method = "osm", verbose = TRUE)
Here below an illustration my input :
name province country
ITP BUMBU KINSHASA CD
COLLEGE ABBE LOYA 1 KINSHASA CD
COLLEGE ADORATION SUD-KIVU CD
COLLEGE ADORA SUD-KIVU CD
Here my output :
adresse lat lon
BUMBU ITP KINSHASA CD -4.37 15.3
COLLEGE ABBE LOYA 1 KINSHASA CD -4.36 15.3
COLLEGE ADORATION SUD-KIVU CD -4.09 29.1
COLLEGE ADORA SUD-KIVU CD -2.54 28.9
Example output wanted :
adresse lat lon exact adresse
BUMBU ITP KINSHASA CD -4.37 15.3 J7QQ+C6J,Kinshasa,RDC
COLLEGE ABBE LOYA 1 KINSHASA CD -4.36 15.3 J7VV+HR3, Kinshasa, RDC