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).
Searching Places
Section titled “Searching Places”const suggest = yield* Location.SearchPlaceIndexForSuggestions(index);
const results = yield* suggest({ Text: "coffee", BiasPosition: [-122.3493, 47.6205], MaxResults: 5,});// results.Results → [{ Text, PlaceId }, …]