I am trying to work with the 'rgeocodio' package. I signed up for an API and stored it in my R environment under "GEOCODIO_API_KEY". When testing geocoding one address I get a 403 error. So I am assuming I am doing something wrong in loading the API. Any help would be much appreciated!
library(rgeocodio) # current version packageVersion("rgeocodio") #> [1] '0.3.0' library(httr) key <- Sys.getenv("GEOCODIO_API_KEY") path <- "https://api.geocod.io/v1.6/" r <- GET(url = path) test <- gio_geocode("1109 N Highland St, Arlington, VA") #> Error in gio_geocode("1109 N Highland St, Arlington, VA"): Forbidden (HTTP 403). Created on 2021-03-14 by the reprex package (v1.0.0)
The link to the package is here. Information on the base URL can be found here.
https://stackoverflow.com/questions/66629331/using-rgeocodio-package March 15, 2021 at 04:40AM
没有评论:
发表评论