From 519911250d7f8ca60a606062929f8e78429a7020 Mon Sep 17 00:00:00 2001 From: Carlos Hernandez Date: Fri, 13 Aug 2021 19:12:34 -0500 Subject: [PATCH] Update get_isric_soil_profile.R Remove the last Soil Grid API and add the new endpoint. The old SoilGrid API link was down. --- R/get_isric_soil_profile.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/R/get_isric_soil_profile.R b/R/get_isric_soil_profile.R index 893bbd7..f8b12e8 100644 --- a/R/get_isric_soil_profile.R +++ b/R/get_isric_soil_profile.R @@ -63,7 +63,8 @@ get_isric_soil_profile <- function(lonlat, if(lon < -180 || lon > 180) stop("longitude should be between -180 and 180") if(lat < -90 || lat > 90) stop("latitude should be between -90 and 90") - rest0 <- "https://rest.soilgrids.org/soilgrids/v2.0/properties/query?lon=" + + rest0 <- "https://rest.isric.org/soilgrids/v2.0/properties/query?lon=" rest1 <- paste0(rest0, lon, "&lat=", lat) rest.properties <- paste("&property=bdod", "property=soc",