A user-friendly description of a location on the map.


class MKPlacemark : CLPlacemark


Placemark data includes information such as the country, state, city, and street address associated with the specified coordinate. A placemark is a concrete annotation object and conforms to the MKAnnotation protocol. Because it is an annotation, you can add a placemark directly to the map view's list of annotations.


Creating a Placemark Object

init(coordinate: CLLocationCoordinate2D)

Initializes and returns a placemark object using the specified coordinate.

init(coordinate: CLLocationCoordinate2D, postalAddress: CNPostalAddress)

Initializes and returns a placemark object with the specified coordinate and postal address from the user's Contacts database.

init(coordinate: CLLocationCoordinate2D, addressDictionary: [String : Any]?)

Initializes and returns a placemark object using the specified coordinate and Address Book dictionary.

Accessing the Placemark Attributes

var countryCode: String?

The abbreviated country name.


Inherits From

See Also

Annotations and Overlays

protocol MKAnnotation

An interface for associating your content with a specific map location.

class MKAnnotationView

The visual representation of one of your annotation objects.

protocol MKOverlay

An interface for associating content with a specific map region.

class MKOverlayRenderer

The shared infrastructure used to draw overlays on the map surface.

MapKit Annotations

Use these annotation objects as-is in your maps.

MapKit Overlays

Use these overlays as-is in your maps.