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

[location] Add iso country code to reverse geocoding response #8913

Merged
merged 4 commits into from
Jun 23, 2020

Conversation

byCedric
Copy link
Member

@byCedric byCedric commented Jun 22, 2020

Why

Fixes #8912

How

Looking at the response from the API, this value exists in the country or political component under short_name. Luckily this is already implemented in the native implementation in both Android and iOS 😄! It was only missing in the fallback to the Google reverse geocoding API and in the Address type.

Test Plan

Run this change in apps/bare-expo, and it works without issues on both the emulator and simulator.

@byCedric byCedric force-pushed the @bycedric/location/document-missing-iso-country-code branch from 04380fa to 19ef620 Compare June 22, 2020 16:21
@github-actions
Copy link
Contributor

Native Component List for this branch is ready

@byCedric
Copy link
Member Author

Damn, the changelog gets me every time. Thank god it's warning 😄

packages/expo-location/CHANGELOG.md Outdated Show resolved Hide resolved
@byCedric byCedric merged commit b2d9ca3 into master Jun 23, 2020
@byCedric byCedric deleted the @bycedric/location/document-missing-iso-country-code branch June 23, 2020 10:46
esamelson pushed a commit that referenced this pull request Jun 24, 2020
* [location] Add isoCountryCode to reverse geocoding lookup

* [docs] Add isoCountryCode to reverse geocoding lookup

* [docs] Add isoCountryCode to changelog item

* [docs] Add code quotes around properties in changelog

Co-authored-by: Tomasz Sapeta <[email protected]>

Co-authored-by: Tomasz Sapeta <[email protected]>
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.

isoCountryCode is not documented.
2 participants