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

Retrieve cell based on shortest distance #12

Open
sivalearn12 opened this issue Dec 14, 2017 · 0 comments
Open

Retrieve cell based on shortest distance #12

sivalearn12 opened this issue Dec 14, 2017 · 0 comments

Comments

@sivalearn12
Copy link

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.

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

No branches or pull requests

1 participant