feat: update map data (#684)

This commit is contained in:
Cafe137
2024-11-25 10:47:30 +01:00
committed by GitHub
parent aef6c07371
commit fbb2ed8a57
2 changed files with 51742 additions and 7116 deletions
+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) {
const db = new Map()
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())