Example usage for com.google.common.geometry S2Cell id

List of usage examples for com.google.common.geometry S2Cell id

Introduction

In this page you can find the example usage for com.google.common.geometry S2Cell id.

Prototype

public S2CellId id() 

Source Link

Usage

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();
}