public static S2LatLng decodeLocation(String locationString){
String[] locationStringArray = locationString.split(",");
BigInteger lat = new BigInteger(locationStringArray[0],16);
BigInteger lng = new BigInteger(locationStringArray[1],16);
double dlat = (double) lat.intValue() / 1000000;
double dlng = (double) lng.intValue() / 1000000;
S2LatLng ret = S2LatLng.fromDegrees(dlat, dlng);
return ret;
}
public static String encodeLocation(S2LatLng s2ll){