AutoCat/AutoCatCore/Services/LocationService/GeocoderProtocol.swift

17 lines
352 B
Swift

//
// GeocoderProtocol.swift
// AutoCatCore
//
// Created by Selim Mustafaev on 31.07.2024.
// Copyright © 2024 Selim Mustafaev. All rights reserved.
//
import CoreLocation
public protocol GeocoderProtocol {
func reverseGeocodeLocation(_ location: CLLocation) async throws -> [CLPlacemark]
}
extension CLGeocoder: GeocoderProtocol { }