We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e20f65b commit a18df7cCopy full SHA for a18df7c
app/assets/scripts/main.js
@@ -4,7 +4,7 @@ the root Missing Maps API endpoint.
4
*/
5
6
const xmlhttp = new XMLHttpRequest();
7
-const url = "https://stats.now.ohsome.org/api";
+const url = "https://stats.now.ohsome.org/api/stats/missingmaps?ohsomeFormat=true";
8
9
xmlhttp.onreadystatechange = function() {
10
if (xmlhttp.readyState === 4 && xmlhttp.status === 200) {
@@ -18,7 +18,7 @@ xmlhttp.send();
18
function updateStatistics(stats) {
19
["users", "edits", "buildings", "roads"].forEach(function(cat) {
20
document.getElementById("stats-" + cat + "Count").innerHTML = Math.round(
21
- stats[cat]
+ stats.result[cat]
22
).toLocaleString();
23
});
24
}
0 commit comments