feat: update map data (#684)

This commit is contained in:
Cafe137 authored and GitHub committed 2024-11-25 10:47:30 +01:00
1 parent aef6c07371
commit fbb2ed8a57
2 files changed
+51742 -7116

No files matched your search

+51739 -7115
View File
File diff suppressed because it is too large. Load diff
+3 -1
View File
@@ -18,7 +18,9 @@ async function getData(url) {
function processData(data) { function processData(data) {
const db = new Map() const db = new Map()
data.nodes.forEach(node => { data.nodes.forEach(node => {
db.set(node.overlay, { lat: node.location.latitude, lng: node.location.longitude }) if (node.location) {
db.set(node.overlay, { lat: node.location.latitude, lng: node.location.longitude })
}
}) })
return Object.fromEntries([...db.entries()].sort()) return Object.fromEntries([...db.entries()].sort())