Skip to content
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

Merged
merged 2 commits into from
Nov 28, 2022

Conversation

sreeramsama
Copy link
Contributor

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

screencapture-localhost

@sreeramsama sreeramsama requested review from a team as code owners September 27, 2022 18:43
thaddmt added a commit to aws-amplify/amplify-js that referenced this pull request Oct 6, 2022
<!--
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>
israx pushed a commit to israx/amplify-js that referenced this pull request Oct 19, 2022
<!--
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>
Comment on lines +224 to +233
[
{
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"
}
]
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SCR-20221121-e42

thaddmt
thaddmt previously approved these changes Nov 1, 2022
@thaddmt
Copy link
Contributor

thaddmt commented Nov 7, 2022

@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 searchForSuggestions and getPlace APIs

hdworld11
hdworld11 previously approved these changes Nov 15, 2022
@sreeramsama sreeramsama dismissed stale reviews from hdworld11 and thaddmt via 78f48cd November 21, 2022 18:08
Comment on lines +261 to +265
<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>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SCR-20221121-e49

@sreeramsama sreeramsama merged commit fd4247d into aws-amplify:main Nov 28, 2022
nicholashu pushed a commit to airteamaus/aws-amplify-geo that referenced this pull request Mar 4, 2024
<!--
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants