CLGeocoderImplementationContract
public protocol CLGeocoderImplementationContract : AnyObject
Defines the interface that geocoding services must implement.
-
Indicates whether the geocoder is currently processing a request.
Declaration
Swift
var isGeocoding: Bool { get }
-
geocodeAddressString(_:
Asynchronousin: preferredLocale: ) Converts an address string into a list of placemarks asynchronously.
Declaration
Swift
func geocodeAddressString(_ addressString: String, in region: CLRegion?, preferredLocale locale: Locale?) async throws -> [CLPlacemark]
-
reverseGeocodeLocation(_:
AsynchronouspreferredLocale: ) Converts a location into a human-readable address asynchronously.
Declaration
Swift
func reverseGeocodeLocation(_ location: CLLocation, preferredLocale locale: Locale?) async throws -> [CLPlacemark]
-
geocodePostalAddress(_:
AsynchronouspreferredLocale: ) Undocumented
Declaration
Swift
func geocodePostalAddress(_ postalAddress: CNPostalAddress, preferredLocale locale: Locale?) async throws -> [CLPlacemark]
-
Cancels any ongoing geocoding requests.
Declaration
Swift
func cancelGeocode()