Skip to content

GetPlace

Source: src/AWS/Location/GetPlace.ts

Fetches the full details of a place by the PlaceId returned from a search.

Runtime binding for the GetPlace operation (IAM action geo:GetPlace), scoped to one PlaceIndex. Provide the implementation with Effect.provide(AWS.Location.GetPlaceHttp).

const getPlace = yield* Location.GetPlace(index);
const place = yield* getPlace({ PlaceId: placeId });
// place.Place.Label, place.Place.Geometry.Point