File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 4141# US Soil ID
4242STATSGO_PATH = f"{ DATA_PATH } /gsmsoilmu_a_us.shp"
4343MUNSELL_RGB_LAB_PATH = f"{ DATA_PATH } /LandPKS_munsell_rgb_lab.csv"
44+ SOILWEB_URL = os .environ .get ("SOILWEB_URL" , "https://soilmap4-1.lawr.ucdavis.edu/api/landPKS.php" )
4445
4546# Global Soil ID
4647HWSD_PATH = f"{ DATA_PATH } /HWSD_global_noWater_no_country.shp"
Original file line number Diff line number Diff line change 1717import logging
1818import re
1919
20+ import config
2021import pandas as pd
2122import requests
2223
@@ -162,7 +163,7 @@ def get_soilweb_data(lon, lat):
162163 Returns:
163164 dict: A dictionary containing soil data or error information if the request fails.
164165 """
165- base_url = "https://soilmap4-1.lawr.ucdavis.edu/api/landPKS.php"
166+ base_url = config . SOILWEB_URL
166167 params = {
167168 "q" : "spn" , # Query type - static for this function's purpose
168169 "lon" : lon ,
You can’t perform that action at this time.
0 commit comments