Contents

getPlace(annotation, options)

Obtains the place associated with a map feature annotation.

Declaration

getPlace(
    annotation: MapFeatureAnnotation,
    options?: PlaceLookupOptions,
): Promise<Place>;

Parameters

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".

See Also

Getting a place