Contents

init(location:address:)

Creates and returns a map item object using the specified location and address objects.

Declaration

init(location: CLLocation, address: MKAddress?)

Parameters

Return Value

An initialized map item object.

Discussion

Use this method to create a map item for a specific location. Don’t use it to create a map item representing the current location of someone’s device, instead use the ```MKMapItem/forCurrentLocation()`` method.