summaryrefslogtreecommitdiffstats
path: root/ios/Hæ-appen/ClusterHit.swift
diff options
context:
space:
mode:
Diffstat (limited to 'ios/Hæ-appen/ClusterHit.swift')
-rw-r--r--ios/Hæ-appen/ClusterHit.swift18
1 files changed, 0 insertions, 18 deletions
diff --git a/ios/Hæ-appen/ClusterHit.swift b/ios/Hæ-appen/ClusterHit.swift
deleted file mode 100644
index ebab096..0000000
--- a/ios/Hæ-appen/ClusterHit.swift
+++ /dev/null
@@ -1,18 +0,0 @@
-//
-// ClusterHit.swift
-// Hæ-appen
-//
-// Created by Ivar Løvlie on 16/09/2025.
-//
-import GISTools
-import WebKit
-
-struct ClusterHit : Decodable { }
-
-final class ClusterProvider {
- func load(west:Int, south: Int, north: Int, east: Int) async throws -> [ClusterHit] {
- let url = URL(string: "http://http://localhost:5281/places?w=\(west)&e=\(east)&s=\(south)&n=\(north)")!
- let (data, _) = try await URLSession.shared.data(from: url)
- return try JSONDecoder().decode([ClusterHit].self, from: data)
- }
-}