google / google/s2-geometry-library-java

Retrieve cell based on shortest distance

Offen
#12 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Java
Sterne
587
Forks
231
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.