google / google/s2-geometry-library-java

Retrieve cell based on shortest distance

Open
#12 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.