CLGeocoder
class CLGeocoder : NSObject
To import the CLGeocoder
category:
use_frameworks!
pod CancelForPromiseKit/CoreLocation
And then in your sources:
import PromiseKit import CancelForPromiseKit
-
Submits a reverse-geocoding request for the specified location.
Declaration
Swift
public func reverseGeocodeCC(location: CLLocation) -> CancellablePromise<[CLPlacemark]>
-
Submits a forward-geocoding request using the specified address dictionary.
Declaration
Swift
@available(iOS, deprecated: 11.0) public func geocodeCC(_ addressDictionary: [String : String]) -> CancellablePromise<[CLPlacemark]>
-
Submits a forward-geocoding request using the specified address string within the specified region.
Declaration
Swift
public func geocodeCC(_ addressString: String, region: CLRegion?) -> CancellablePromise<[CLPlacemark]>
-
Submits a forward-geocoding request using the specified postal address.
Declaration
Swift
@available(iOS 11.0, OSX 10.13, watchOS 4.0, *) public func geocodePostalAddressCC(_ postalAddress: CNPostalAddress) -> CancellablePromise<[CLPlacemark]>
-
Submits a forward-geocoding requesting using the specified locale and postal address
Declaration
Swift
@available(iOS 11.0, OSX 10.13, watchOS 4.0, *) public func geocodePostalAddressCC(_ postalAddress: CNPostalAddress, preferredLocale locale: Locale?) -> CancellablePromise<[CLPlacemark]>