CLPlacemark

open class CLPlacemark : NSObject, NSCopying, NSSecureCoding, @unchecked Sendable

A structure that contains placemark data for a given latitude and longitude. Apple Documentation

Properties

  • The location coordinate of the placemark. Apple Documentation

    Declaration

    Swift

    @NSCopying
    open private(set) var location: CLLocation? { get }
  • The associated region of the placemark, if applicable. Apple Documentation

    Declaration

    Swift

    @NSCopying
    open private(set) var region: CLRegion? { get }
  • The time zone associated with the placemark. Apple Documentation

    Declaration

    Swift

    open private(set) var timeZone: TimeZone? { get }
  • The name of the place, typically used to label a point of interest. Apple Documentation

    Declaration

    Swift

    open private(set) var name: String? { get }
  • The street address of the placemark (e.g., “1 Infinite Loop”). Apple Documentation

    Declaration

    Swift

    open private(set) var thoroughfare: String? { get }
  • Additional street information (e.g., “Apt 4B”). Apple Documentation

    Declaration

    Swift

    open private(set) var subThoroughfare: String? { get }
  • The city or town of the placemark. Apple Documentation

    Declaration

    Swift

    open private(set) var locality: String? { get }
  • The neighborhood or district of the placemark. Apple Documentation

    Declaration

    Swift

    open private(set) var subLocality: String? { get }
  • The state, province, or administrative area of the placemark. Apple Documentation

    Declaration

    Swift

    open private(set) var administrativeArea: String? { get }
  • The county or second-level administrative area of the placemark. Apple Documentation

    Declaration

    Swift

    open private(set) var subAdministrativeArea: String? { get }
  • The postal code (ZIP code) of the placemark. Apple Documentation

    Declaration

    Swift

    open private(set) var postalCode: String? { get }
  • The ISO country code of the placemark (e.g., “US”, “GB”). Apple Documentation

    Declaration

    Swift

    open private(set) var isoCountryCode: String? { get }
  • The full country name of the placemark. Apple Documentation

    Declaration

    Swift

    open private(set) var country: String? { get }
  • The name of the inland body of water associated with the placemark. Apple Documentation

    Declaration

    Swift

    open private(set) var inlandWater: String? { get }
  • The name of the ocean associated with the placemark. Apple Documentation

    Declaration

    Swift

    open private(set) var ocean: String? { get }
  • An array of areas of interest associated with the placemark. Apple Documentation

    Declaration

    Swift

    open private(set) var areasOfInterest: [String]? { get }
  • A structured postal address representation of the placemark. Uses GenericPostalAddress on non-Apple platforms. Apple Documentation

    Declaration

    Swift

    open private(set) var postalAddress: CNPostalAddress? { get }

Initializers

  • Initializes a new placemark object.

    Declaration

    Swift

    public init(coordinate: CLLocationCoordinate2D, name: String? = nil,
                locality: String? = nil, administrativeArea: String? = nil,
                country: String? = nil, postalCode: String? = nil, isoCountryCode: String? = nil)

    Parameters

    coordinate

    The geographic coordinate of the placemark.

    name

    The name of the place.

    locality

    The city or town.

    administrativeArea

    The state, province, or administrative area.

    country

    The full country name.

    postalCode

    The postal code.

    isoCountryCode

    The ISO country code.

  • Copy initializer

    Declaration

    Swift

    public init(placemark: CLPlacemark)

    Parameters

    placemark

    The existing CLPlacemark to copy.

NSCopying

  • Undocumented

    Declaration

    Swift

    public func copy(with zone: NSZone? = nil) -> Any

NSSecureCoding

  • Undocumented

    Declaration

    Swift

    public static var supportsSecureCoding: Bool { get }
  • Undocumented

    Declaration

    Swift

    public func encode(with coder: NSCoder)
  • Undocumented

    Declaration

    Swift

    public required init?(coder: NSCoder)