-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add docs on new Geo APIs - searchForSuggestions and searchByPlaceId #4615
Conversation
<!-- Please make sure to read the Pull Request Guidelines: https://github.com/aws-amplify/amplify-js/blob/main/CONTRIBUTING.md#pull-requests --> #### Description of changes <!-- Thank you for your Pull Request! Please provide a description above and review the requirements below. --> Add new Geo APIs - searchForSuggestions & searchByPlaceId #### Related documentation PR: aws-amplify/docs#4615 #### Issue #, if available <!-- Also, please reference any associated PRs for documentation updates. --> #### Description of how you validated changes - Unit tests - Manual testing from UI #### Checklist <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> - [x] PR description included - [x] `yarn test` passes - [x] Tests are [changed or added](https://github.com/aws-amplify/amplify-js/blob/main/CONTRIBUTING.md#steps-towards-contributions) - [x] Relevant documentation is changed or added (and PR referenced) By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. Co-authored-by: Thadd Trinh <thadtrin@amazon.com> Co-authored-by: thaddmt <68032955+thaddmt@users.noreply.github.com>
<!-- Please make sure to read the Pull Request Guidelines: https://github.com/aws-amplify/amplify-js/blob/main/CONTRIBUTING.md#pull-requests --> #### Description of changes <!-- Thank you for your Pull Request! Please provide a description above and review the requirements below. --> Add new Geo APIs - searchForSuggestions & searchByPlaceId #### Related documentation PR: aws-amplify/docs#4615 #### Issue #, if available <!-- Also, please reference any associated PRs for documentation updates. --> #### Description of how you validated changes - Unit tests - Manual testing from UI #### Checklist <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> - [x] PR description included - [x] `yarn test` passes - [x] Tests are [changed or added](https://github.com/aws-amplify/amplify-js/blob/main/CONTRIBUTING.md#steps-towards-contributions) - [x] Relevant documentation is changed or added (and PR referenced) By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. Co-authored-by: Thadd Trinh <thadtrin@amazon.com> Co-authored-by: thaddmt <68032955+thaddmt@users.noreply.github.com>
[ | ||
{ | ||
text: "Amazon Go, 2131 7th Ave, Seattle, WA, 98121, USA", | ||
placeId: "8fd9d4c6-2527-4190-a7df-0dae352c9dc6" | ||
}, | ||
{ | ||
text: "Amazon Go, 1906 Terry Ave, Seattle, WA, 98101, USA", | ||
placeId: "5d04d071-dea2-4d86-bfce-86bd6a8f4787" | ||
} | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you include an example here of result without a placeId
and advice that they can use that result with the searchByText
API. Otherwise LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sreeramsama Please add a note that customers who used search previously will need to upgrade to the latest version of the CLI and do an amplify push to update their IAM policies to allow for |
<Callout> | ||
|
||
**Note:** Upgrade to the latest Amplify CLI version (greater than version 10.4) and do an ``amplify push`` to update your IAM policies to allow for ``getPlace`` API. | ||
|
||
</Callout> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<!-- Please make sure to read the Pull Request Guidelines: https://github.com/aws-amplify/amplify-js/blob/main/CONTRIBUTING.md#pull-requests --> #### Description of changes <!-- Thank you for your Pull Request! Please provide a description above and review the requirements below. --> Add new Geo APIs - searchForSuggestions & searchByPlaceId #### Related documentation PR: aws-amplify/docs#4615 #### Issue #, if available <!-- Also, please reference any associated PRs for documentation updates. --> #### Description of how you validated changes - Unit tests - Manual testing from UI #### Checklist <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> - [x] PR description included - [x] `yarn test` passes - [x] Tests are [changed or added](https://github.com/aws-amplify/amplify-js/blob/main/CONTRIBUTING.md#steps-towards-contributions) - [x] Relevant documentation is changed or added (and PR referenced) By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. Co-authored-by: Thadd Trinh <thadtrin@amazon.com> Co-authored-by: thaddmt <68032955+thaddmt@users.noreply.github.com>
Issue #, if available
Description of changes
Add documentation on new Geo APIs - searchForSuggestions and searchByPlaceId
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Screenshot