|
@@ -4,7 +4,7 @@ library(dplyr)
|
4
|
4
|
#library(ggmap)
|
5
|
5
|
library(photon)
|
6
|
6
|
library(readr)
|
7
|
|
-source("osm_api.R")
|
|
7
|
+#source("osm_api.R")
|
8
|
8
|
Geo2017 <- clean_names(read_csv("data/AllDHBsGeocoded.csv"), case = "snake") %>%
|
9
|
9
|
select(-facility_opening_date) %>%
|
10
|
10
|
mutate(dhb_name = ifelse(is.na(dhb_name), "Missing", dhb_name),
|
|
@@ -47,4 +47,6 @@ table(Geo2017$facility_type_name)
|
47
|
47
|
|
48
|
48
|
# newcoded <- osm_geocode("21 Ruakura Road, Hamilton East, Hamilton 3216")
|
49
|
49
|
|
50
|
|
-newcoded <- geocode(gp_new$address, limit = 1)
|
|
50
|
+newcoded <- as.data.frame(t(sapply(gp_new$address, geocode)))
|
|
51
|
+#newcoded <- geocode(gp_new$address, limit = 1)
|
|
52
|
+
|