Files
aris-old/IrisCompanion/iris/DataSources/POIDataSource.swift

38 lines
834 B
Swift

//
// POIDataSource.swift
// iris
//
// Created by Codex.
//
import CoreLocation
import Foundation
struct POIDataSourceConfig: Sendable {
var maxCandidates: Int = 3
init() {}
}
/// Placeholder POI source. Hook point for MapKit / local cache / server-driven POIs.
final class POIDataSource {
struct POI: Sendable, Equatable {
let id: String
let name: String
}
private let config: POIDataSourceConfig
init(config: POIDataSourceConfig = .init()) {
self.config = config
}
func data(for location: CLLocation, now: Int) async throws -> [POI] {
// Phase 1 stub: return nothing.
// (Still async/throws so the orchestrator can treat it uniformly with real implementations later.)
_ = config
_ = location
_ = now
return []
}
}