---
title: fetchPlace(callback)
framework: mapkitjs
role: symbol
role_heading: Instance Method
path: mapkitjs/mapfeatureannotation/fetchplace
---

# fetchPlace(callback)

Fetches the place object associated with the map feature.

## Declaration

```data
fetchPlace(
    callback: (error: Error | null, result: Place | null) => void,
): Promise<Place | null>;
```

## Parameters

- `callback`: Required. The framework invokes the callback function with two arguments, error and data, on success or failure: error — Contains an error code and a message that describes the error. data — A data object that contains an array with one doc://com.apple.mapkitjs/documentation/MapKitJS/Place object associated with the map feature, or an empty array if the server can’t return the specified place.

## Mentioned in

MapKit JS 6
