getPlace(annotation, options)
Obtains the place associated with a map feature annotation.
Declaration
getPlace(
annotation: MapFeatureAnnotation,
options?: PlaceLookupOptions,
): Promise<Place>;Parameters
- annotation:
The Mapfeatureannotation to look up.
- options:
Options that can overwrite the same options set on the property or that you supplied to the Placelookup constructor. See Placelookupoptions.
Return Value
A promise that resolves with a Place on success, or rejects with an Error on failure.
Discussion
Use this method to retrieve the full Place information for a MapFeatureAnnotation that a person selects on the map.
Pass an AbortSignal from an AbortController to the signal option to allow the controller to cancel a pending request. When the controller aborts, the returned promise rejects with a DOMException whose name is "AbortError".