Geographic Information Systems Asked on December 18, 2021
We were using the v1 of the SoilGrids REST API and previously we were able to get the soil type, rain and temperature. We used the following values:
For the API v1, the query required only the latitude and longitude of the location we wanted to know about.
GET https://rest.soilgrids.org/query?
lat=xxxxx&lon=yyyyy
&attributes=TAXOUSDA,TMDMOD,PREMRG
And then I used the response to pull the values of soil type, temperature, and precipitation.
$soil_properties[ 'soil_type' ] = $result->properties->TAXGOUSDAMajor;
$soil_properties[ 'temp' ] = $result->properties->TMDMOD_2011->M
$soil_properties[ 'rain' ] = $result->properties->PREMRG->M
Now the API v1 is returning a 404. The new version (API 2.0) doesn’t appear to provide these values.
Where can I get them?
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP