diff --git a/.circleci/config.yml b/.circleci/config.yml index 2b0223f..6853da5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -88,7 +88,7 @@ jobs: command: xcodebuild -project MapboxGeocoder.xcodeproj -scheme 'MapboxGeocoder Mac' clean build<<# parameters.test >> test <><<# parameters.codecoverage >>-enableCodeCoverage YES<> - run: name: watchOS - command: xcodebuild -project MapboxGeocoder.xcodeproj -scheme 'MapboxGeocoder watchOS' -destination 'platform=watchOS Simulator,name=Apple Watch Series 3 - 42mm,OS=<< parameters.watchOS >>' clean build + command: xcodebuild -project MapboxGeocoder.xcodeproj -scheme 'MapboxGeocoder watchOS' -destination 'platform=watchOS Simulator,name=Apple Watch Series 4 - 44mm,OS=<< parameters.watchOS >>' clean build workflows: workflow: @@ -101,8 +101,9 @@ workflows: watchOS: "5.2" codecoverage: true - build-job: - name: "Xcode_10.2_iOS_9" - xcode: "10.2.0" - iOS: "9.3" - tvOS: "12.2" - watchOS: "5.2" + name: "Xcode_11.3_iOS_13" + xcode: "11.3.0" + device: "iPhone 8 Plus" + iOS: "13.3" + tvOS: "13.3" + watchOS: "6.1.1" diff --git a/MapboxGeocoder/MBPlacemark.swift b/MapboxGeocoder/MBPlacemark.swift index 6f436b4..b775a3e 100644 --- a/MapboxGeocoder/MBPlacemark.swift +++ b/MapboxGeocoder/MBPlacemark.swift @@ -80,6 +80,19 @@ open class Placemark: NSObject, Codable { case boundingBox = "bbox" } + /** + Creates a placemark with the given name and identifier. + + Normally you do not call this method to obtain a placemark. Instead, you call the `Geocoder.geocode(_:completionHandler:)` method, which asynchronously returns placemarks that match certain criteria. + + - parameter identifier: A string that uniquely identifies the feature. + - parameter name: The common name of the placemark. + */ + @objc public init(identifier: String, name: String) { + self.identifier = identifier + self.name = name + } + /** Creates a placemark from the given [Carmen GeoJSON](/~https://github.com/mapbox/carmen/blob/master/carmen-geojson.md) feature. */