---
title: "getPlace(id, options)"
framework: mapkitjs
role: symbol
role_heading: Instance Method
path: mapkitjs/placelookup/getplace
---

# getPlace(id, options)

Obtains a place using its identifier.

## Declaration

```data
getPlace(id: string, options?: PlaceLookupOptions): Promise<Place>;
```

## Parameters

- `id`: The Place ID that refers to the doc://com.apple.mapkitjs/documentation/MapKitJS/Place object to fetch.
- `options`: Options that can overwrite the same options set on the property or that you supplied to the doc://com.apple.mapkitjs/documentation/MapKitJS/PlaceLookup constructor. See doc://com.apple.mapkitjs/documentation/MapKitJS/PlaceLookupOptions.

## Mentioned in

MapKit JS 6 Migrating from Version 5 to Version 6

## Return Value

Return Value A promise that resolves with a Place on success, or rejects with an Error on failure.

## Discussion

Discussion For information about Places, see Identifying unique locations with Place IDs. Pass an AbortSignal from an AbortController to the signal option to allow the controller to cancel a pending request. When the controller aborts, the promise it returns rejects with a DOMException whose name is "AbortError".

## See Also

### Getting a place

- [getPlace(annotation, options)](mapkitjs/placelookup/getplace1.md)
- [PlaceLookupOptions](mapkitjs/placelookupoptions.md)
