Skip to content

Commit a18df7c

Browse files
committed
switched to correct url and ohsome format
1 parent e20f65b commit a18df7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/assets/scripts/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ the root Missing Maps API endpoint.
44
*/
55

66
const xmlhttp = new XMLHttpRequest();
7-
const url = "https://stats.now.ohsome.org/api";
7+
const url = "https://stats.now.ohsome.org/api/stats/missingmaps?ohsomeFormat=true";
88

99
xmlhttp.onreadystatechange = function() {
1010
if (xmlhttp.readyState === 4 && xmlhttp.status === 200) {
@@ -18,7 +18,7 @@ xmlhttp.send();
1818
function updateStatistics(stats) {
1919
["users", "edits", "buildings", "roads"].forEach(function(cat) {
2020
document.getElementById("stats-" + cat + "Count").innerHTML = Math.round(
21-
stats[cat]
21+
stats.result[cat]
2222
).toLocaleString();
2323
});
2424
}

0 commit comments

Comments
 (0)