Example usage for com.google.common.geometry S2CellId toLatLng

List of usage examples for com.google.common.geometry S2CellId toLatLng

Introduction

In this page you can find the example usage for com.google.common.geometry S2CellId toLatLng.

Prototype

public S2LatLng toLatLng() 

Source Link

Document

Return the S2LatLng corresponding to the center of the given cell.

Usage

From source file:com.norman0406.slimgress.API.Common.Location.java

public Location(long cellId) {
    S2CellId cell = new S2CellId(cellId);

    S2LatLng pos = cell.toLatLng();
    latitude = pos.lat().e6();//from   w ww.java2 s  .com
    longitude = pos.lng().e6();
}