Class GeoHashUtils

    • Method Detail

      • encode

        public static String encode​(double latitude,
                                    double longitude)
        Deprecated.
        Encodes the given latitude and longitude into a geohash
        Parameters:
        latitude - Latitude to encode
        longitude - Longitude to encode
        Returns:
        Geohash encoding of the longitude and latitude
      • decode

        public static double[] decode​(String geohash)
        Deprecated.
        Decodes the given geohash into a latitude and longitude
        Parameters:
        geohash - Geohash to deocde
        Returns:
        Array with the latitude at index 0, and longitude at index 1