List of usage examples for com.google.common.geometry S2Cell id
public S2CellId id()
From source file:com.amazonaws.geo.s2.internal.S2Manager.java
public static long generateGeohash(GeoPoint geoPoint) { S2LatLng latLng = S2LatLng.fromDegrees(geoPoint.getLatitude(), geoPoint.getLongitude()); S2Cell cell = new S2Cell(latLng); S2CellId cellId = cell.id(); return cellId.id(); }