SuitabilityGeothermalDrillingSwitzerland is an open source Java script library that allows to query the cantonal interfaces whether a site in Switzerland is suitable for a geothermal drilling. This library is supporting the web app www.kann-ich-bohren.ch.
This project is maintained by SFOE
Please find the documentation of the library here
For current state (run daily) of all checks of all cantonal interfaces please visit Link
There are three examples:
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>BFE Erdwärmensondentool</title>
<script defer src="SuitabilityGeothermalDrillingSwitzerland.min.js"></script>
</head>
<body>
<div id="result">Calculating result. Please wait...</div>
<script>
var result = document.getElementById("result");
window.addEventListener("load", function () {
BfeLib.CheckSuitabilityCanton(2601561, 1205318, "BE").then(harmonisedValue => {
if (harmonisedValue == 1) result.innerHTML = 'Kat 1: Grundsätzlich mit allgemeinen Auflagen zulässig';
else if (harmonisedValue == 2) result.innerHTML = 'Kat 2: Grundsätzlich mit speziellen Auflagen zulässig';
else if (harmonisedValue == 3) result.innerHTML = 'Kat 3: Grundsätzlich nicht zulässig';
else if (harmonisedValue == 4) result.innerHTML = 'Kat 4: Aussage zur Eignung zurzeit nicht möglich';
else if (harmonisedValue == 5) result.innerHTML = 'Kat 5: Keine Daten vorhanden';
else if (harmonisedValue == 999) result.innerHTML = 'Allgemeiner Fehler';
});
});
</script>
</body>
</html>