forked from Esri/geometry-api-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Created Geohash class and its skeletton Esri#213
- Loading branch information
1 parent
e0bef0b
commit af667b6
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package com.esri.core.geometry; | ||
|
||
|
||
/** | ||
* Helper class to work with geohash | ||
*/ | ||
public class Geohash { | ||
|
||
/** | ||
* Create an evelope from a given geohash | ||
* @param geoHash | ||
* @return The envelope that corresponds to the geohash | ||
*/ | ||
public static Envelope2D geohashToEnvelope(String geoHash){ | ||
return null; | ||
} | ||
|
||
/** | ||
* Computes the geohash that contains a point at a certain precision | ||
* @param pt | ||
* @param characterLength - The precision of the geohash | ||
* @return The geohash of containing pt as a String | ||
*/ | ||
public static String toGeohash(Point2D pt, int characterLength){ | ||
return ""; | ||
} | ||
|
||
/** | ||
* Compute the longest geohash that contains the envelope | ||
* @param envelope | ||
* @return the geohash as a string | ||
*/ | ||
public static String containingGeohash(Envelope2D envelope){ | ||
return ""; | ||
} | ||
|
||
/** | ||
* | ||
* @param envelope | ||
* @return up to four geohashes that completely cover given envelope | ||
*/ | ||
public static String[] coveringGeohash(Envelope2D envelope){ | ||
return new String[]{}; | ||
} | ||
} |