Skip to content

SearchPlaceIndexForSuggestions

Source: src/AWS/Location/SearchPlaceIndexForSuggestions.ts

Returns typeahead suggestions for a partial text query (autocomplete).

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

const suggest = yield* Location.SearchPlaceIndexForSuggestions(index);
const results = yield* suggest({
Text: "coffee",
BiasPosition: [-122.3493, 47.6205],
MaxResults: 5,
});
// results.Results → [{ Text, PlaceId }, …]