Skip to content

Latest commit

History

History
38 lines (27 loc) 路 702 Bytes

File metadata and controls

38 lines (27 loc) 路 702 Bytes

EXTENSION

CLLocation

public extension CLLocation

Methods

init(from:)

convenience init(from coordinate: CLLocationCoordinate2D)

CLLocation from CLLocationCoordinate2D

  • Parameter coordinate: CLLocationCoordinate2D

Parameters

Name Description
coordinate CLLocationCoordinate2D

reverseGeocode()

func reverseGeocode() -> Deferred<Future<[CLPlacemark], GeocodeError>>

Reverse geocode a CLLocation

  • Parameter location: CLLocation
  • Returns: Future with Result<[CLPlacemark], GeocodeError>

Parameters

Name Description
location CLLocation