API: Specialized GeoJSON format for subunits
In order for Thanados to use the API, the API need to provide a special GeoJSON format. The specifications of this format can be found here: thanados api
Updated by Bernhard Koschiček-Krombholz about 1 month ago
- Status changed from Acknowledged to Closed
- Target version changed from API to 7.0.0
The subunits can be called from /api/0.3/subunits/<id>.
At the moment, only one ID can be processed at one call. This is due to the fact, that larger sites (with over 200 Features, 200 Stratigraphic units) can take up to two minutes to process. So the likelihood of a timeout error is very high, if multiple sites are requested.
So in theory, Thanados can get its data from the API, but it will be slower than the direct SQL calls from the Thanados frontend.