google / google/s2-geometry-library-java

Retrieve cell based on shortest distance

オープン
#12 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
587
フォーク
231
PR マージ指標
30日以内にマージされた PR はありません

説明

Hi,
i need to create the cell for list of lat and long and then have to retrieve the cells based on shortest distance or nearby cells.

List S2CellList = new ArrayList();
S2Cell s2cell = new S2Cell(S2LatLng.fromDegrees(lat,long).toPoint());
S2CellList.add(s2cell);

like that i have added the set of cell to list for the list of lat and long. Now i need to show the cell with shortest distance. please guide me in coding.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、issue に示されている S2Cell と S2LatLng の使用方法を確認し、ライブラリに既存する cell および distance API を探します。求められている結果が最も近い cell を 1 つなのか、近傍の cell を複数なのかを明確にし、その後、提供された緯度/経度リストを使って再現可能な例を定義し、選択された cell が期待される最短距離の挙動と一致することを検証します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
backend
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
静か
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。