---
title: "init(location:address:)"
framework: mapkit
role: symbol
role_heading: Initializer
path: "mapkit/mkmapitem/init(location:address:)"
---

# init(location:address:)

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

## Declaration

```swift
init(location: CLLocation, address: MKAddress?)
```

## Parameters

- `location`: A doc://com.apple.documentation/documentation/CoreLocation/CLLocation.
- `address`: An doc://com.apple.mapkit/documentation/MapKit/MKAddress.

## Return Value

Return Value An initialized map item object.

## Discussion

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.
