One Logo Pool Ball
MapKit · IOS API REFERENCE

MKMapItem

class · iOS 6.0+ · SDK 27.1

class MKMapItem

Members (24)

static · iOS 6.0+

forCurrentLocation

TypeScript
static forCurrentLocation(): MKMapItem
Swift declaration
class func forCurrentLocation() -> MKMapItem
static · iOS 6.0+

openMaps

TypeScript
static openMapsWithLaunchOptions(mapItems: Array<MKMapItem>, launchOptions?: (Record<string, unknown>) | null): boolean
Swift declaration
class func openMaps(with mapItems: [MKMapItem], launchOptions: [String : Any]? = nil) -> Bool
static · iOS 13.2+

openMaps

TypeScript
static openMapsWithLaunchOptionsFromCompletionHandler(mapItems: Array<MKMapItem>, launchOptions?: (Record<string, unknown>) | null, scene?: (_UIKit_UIScene) | null, completion?: (((arg0: boolean) => void)) | null): void
Swift declaration
class func openMaps(with mapItems: [MKMapItem], launchOptions: [String : Any]? = nil, from scene: UIScene?) async -> Bool
init · iOS 26.0+

init

TypeScript
static initLocationAddress(location: __LocationEssentials_CLLocation, address?: (MKAddress) | null): MKMapItem
Swift declaration
init(location: CLLocation, address: MKAddress?)
init · iOS 6.0+ · Deprecated in iOS 26.0

init

TypeScript
static initPlacemark(placemark: MKPlacemark): MKMapItem
Swift declaration
init(placemark: MKPlacemark)
method · iOS 6.0+

openInMaps

TypeScript
openInMapsLaunchOptions(launchOptions?: (Record<string, unknown>) | null): boolean
Swift declaration
func openInMaps(launchOptions: [String : Any]? = nil) -> Bool
method · iOS 13.2+

openInMaps

TypeScript
openInMapsLaunchOptionsFromCompletionHandler(launchOptions?: (Record<string, unknown>) | null, scene?: (_UIKit_UIScene) | null, completion?: (((arg0: boolean) => void)) | null): void
Swift declaration
func openInMaps(launchOptions: [String : Any]? = nil, from scene: UIScene?) async -> Bool
get · iOS 26.0+

address

TypeScript
get address(): (MKAddress) | null
Swift declaration
var address: MKAddress? { get }
get · iOS 26.0+

addressRepresentations

TypeScript
get addressRepresentations(): (MKAddressRepresentations) | null
Swift declaration
var addressRepresentations: MKAddressRepresentations? { get }
get · iOS 18.0+

alternateIdentifiers

TypeScript
get alternateIdentifiers(): Array<MKMapItem_Identifier>
Swift declaration
var alternateIdentifiers: Set<MKMapItem.Identifier> { get }
get · iOS 18.0+

identifier

TypeScript
get identifier(): (MKMapItem_Identifier) | null
Swift declaration
var identifier: MKMapItem.Identifier? { get }
get · iOS 6.0+

isCurrentLocation

TypeScript
get isCurrentLocation(): boolean
Swift declaration
var isCurrentLocation: Bool { get }
get · iOS 26.0+

location

TypeScript
get location(): __LocationEssentials_CLLocation
Swift declaration
var location: CLLocation { get }
get · iOS 6.0+

name

TypeScript
get name(): (string) | null
Swift declaration
var name: String? { get set }
set · iOS 6.0+

name

TypeScript
set name(value: (string) | null)
Swift declaration
var name: String? { get set }
get · iOS 6.0+

phoneNumber

TypeScript
get phoneNumber(): (string) | null
Swift declaration
var phoneNumber: String? { get set }
set · iOS 6.0+

phoneNumber

TypeScript
set phoneNumber(value: (string) | null)
Swift declaration
var phoneNumber: String? { get set }
get · iOS 6.0+ · Deprecated in iOS 26.0

placemark

TypeScript
get placemark(): MKPlacemark
Swift declaration
var placemark: MKPlacemark { get }
get · iOS 13.0+

pointOfInterestCategory

TypeScript
get pointOfInterestCategory(): (MKPointOfInterestCategory) | null
Swift declaration
var pointOfInterestCategory: MKPointOfInterestCategory? { get set }
set · iOS 13.0+

pointOfInterestCategory

TypeScript
set pointOfInterestCategory(value: (MKPointOfInterestCategory) | null)
Swift declaration
var pointOfInterestCategory: MKPointOfInterestCategory? { get set }
get · iOS 9.0+

timeZone

TypeScript
get timeZone(): (_Foundation_TimeZone) | null
Swift declaration
var timeZone: TimeZone? { get set }
set · iOS 9.0+

timeZone

TypeScript
set timeZone(value: (_Foundation_TimeZone) | null)
Swift declaration
var timeZone: TimeZone? { get set }
get · iOS 6.0+

url

TypeScript
get url(): (string) | null
Swift declaration
var url: URL? { get set }
set · iOS 6.0+

url

TypeScript
set url(value: (string) | null)
Swift declaration
var url: URL? { get set }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

MKMapItem.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

All MapKit types →