Places address autocomplete form doesn't account for sublocality_level_1
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 38/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- typescript
調査の方向性
places-autocomplete-addressform sampleを開き、134 N Sixth St Brooklyn, NYで問題を再現します。sampleをリンクされたfiddleおよびcommitと比較し、選択した候補によってCityにBrooklynが入力されることを確認して、指摘されているフォーマットとgeometry-fieldに関する懸念を確認します。
索引モデルが issue の本文から書いたものです。
説明
Operating system
Windows 10 Pro 22H2
Browser Version
Chrome 111.0.5563.147
How severe is the bug?
low
Bug description
The developer documents specifically call-out the case that some addresses, like those in Brooklyn, need to use sublocality_level_1 instead of locality. Since this demo is US-centric, it seems reasonable to account for this case.
Developer Documentation Reference
I'm sure this does not cover every edge case, but it at least covers the one listed in the sample documentation.
Here's a fiddle with the fix and a commit but I believe opening an issue first is the appropriate workflow.
There were also some minor formatting inconsistencies which I don't think are intentional, but I could be wrong.
Finally, geometry is requested and not used which seems counter to the "only pull the fields you need" philosophy in the docs.
All of this is just for your consideration, as I can also understand not wanting to include it given the proviso of needing to adjust for certain situations in the docs. However, I do think this makes the sample more clear.
Steps to reproduce
Open the sample for places-autocomplete-addressform (the link in the bug description goes there)
Start typing address until suggestions appear.
Test address: 134 N Sixth St Brooklyn, NY (Google Store location)
Expected result: City is Brooklyn after selection of autocomplete suggestion showing Brooklyn.
Actual result: City is blank.
Console log output
No response
- 主要言語
- TypeScript
- スター
- 804
- フォーク
- 826
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
googlemaps/js-samples のほかの issue
-
Advanced Markers Animation Unused Variable対応中かも @treckstar が 832 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
googlemaps/js-samples#1794 ·
-
Driverオープン
難易度 5/5 1週間以上 初心者へのやさしさ 5/100
googlemaps/js-samples#1940 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
googlemaps/js-samples#1932 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 32/100
googlemaps/js-samples#1914 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
googlemaps/js-samples#1827 · コメント 1 件 ·
googlemaps/js-samples の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
awslabs/visual-asset-management-system#1278 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
mifi/lossless-cut#3213 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 83/100
plasma-umass/scalene#1123 ·
メンテナーはふだん 1 日以内に返信