google / google/s2-geometry-library-java
Retrieve cell based on shortest distance
- Dominant language
- Java
- Stars
- 587
- Forks
- 231
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
Research direction
Start by reviewing the S2Cell and S2LatLng usage shown in the issue and locate the library's existing cell and distance APIs. Clarify whether the desired result is one nearest cell or multiple nearby cells, then define a reproducible example using the provided latitude/longitude list and verify that the selected cells match the expected shortest-distance behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100