| Package | Description |
|---|---|
| ch.hsr.geohash | |
| ch.hsr.geohash.queries | |
| ch.hsr.geohash.util |
| Modifier and Type | Method and Description |
|---|---|
static GeoHash |
GeoHash.fromBinaryString(java.lang.String binaryString) |
static GeoHash |
GeoHash.fromGeohashString(java.lang.String geohash)
build a new
GeoHash from a base32-encoded String.This will also set up the hashes bounding box and other values, so it can also be used with functions like within(). |
static GeoHash |
GeoHash.fromLongValue(long hashVal,
int significantBits) |
static GeoHash |
GeoHash.fromOrd(long ord,
int significantBits) |
GeoHash[] |
GeoHash.getAdjacent()
returns the 8 adjacent hashes for this one.
|
GeoHash |
GeoHash.getEasternNeighbour() |
GeoHash |
GeoHash.getNorthernNeighbour() |
GeoHash |
GeoHash.getSouthernNeighbour() |
GeoHash |
GeoHash.getWesternNeighbour() |
GeoHash |
GeoHash.next() |
GeoHash |
GeoHash.next(int step) |
GeoHash |
GeoHash.prev() |
protected GeoHash |
GeoHash.recombineLatLonBitsToHash(long[] latBits,
long[] lonBits) |
static GeoHash |
GeoHash.withBitPrecision(double latitude,
double longitude,
int numberOfBits)
create a new
GeoHash with the given number of bits accuracy. |
static GeoHash |
GeoHash.withCharacterPrecision(double latitude,
double longitude,
int numberOfCharacters)
This method uses the given number of characters as the desired precision
value.
|
| Modifier and Type | Method and Description |
|---|---|
int |
GeoHash.compareTo(GeoHash o) |
static long |
GeoHash.stepsBetween(GeoHash one,
GeoHash two)
Counts the number of geohashes contained between the two (ie how many
times next() is called to increment from one to two) This value depends
on the number of significant bits.
|
boolean |
GeoHash.within(GeoHash boundingBox)
returns true iff this is within the given geohash bounding box.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<GeoHash> |
GeoHashBoundingBoxQuery.getSearchHashes() |
java.util.List<GeoHash> |
GeoHashQuery.getSearchHashes()
should return the hashes that re required to perform this search.
|
java.util.List<GeoHash> |
GeoHashCircleQuery.getSearchHashes() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
GeoHashBoundingBoxQuery.contains(GeoHash hash) |
boolean |
GeoHashQuery.contains(GeoHash hash)
check wether a geohash is within the hashes that make up this query.
|
boolean |
GeoHashCircleQuery.contains(GeoHash hash) |
| Modifier and Type | Method and Description |
|---|---|
GeoHash |
TwoGeoHashBoundingBox.getBottomLeft() |
GeoHash |
TwoGeoHashBoundingBox.getTopRight() |
GeoHash |
BoundingBoxSampler.next() |
GeoHash |
BoundingBoxGeoHashIterator.next() |
| Constructor and Description |
|---|
TwoGeoHashBoundingBox(GeoHash bottomLeft,
GeoHash topRight) |
Copyright © 2015. All Rights Reserved.