Click or drag to resize

GeoHash Class

See https://en.wikipedia.org/wiki/Geohash
Inheritance Hierarchy
SystemObject
  VelocityDBExtensions.GeoGeoHash

Namespace:  VelocityDBExtensions.Geo
Assembly:  VelocityDBExtensions (in VelocityDBExtensions.dll) Version: 11.1.0.0 (11.1.0)
Syntax
[SerializableAttribute]
public sealed class GeoHash : IComparable<GeoHash>

The GeoHash type exposes the following members.

Properties
  NameDescription
Public propertyAdjacent
returns the 8 adjacent hashes for this one. They are in the following order: N, NE, E, SE, S, SW, W, NW
Public propertyBoundingBox
Get BoundingBox for this GeoHash
Public propertyBoundingBoxCenterPoint
return the center of this s bounding box. this is rarely the same point that was used to build the hash.
Public propertyCharacterPrecision
Returns the number of characters that represent this hash.
Public propertyEasternNeighbour
Nearest GeoHash Neighbor to the East
Public propertyLongValue
Int64 representation of this GeoHash
Public propertyNorthernNeighbour
Nearest GeoHash Neighbor to the North
Public propertyPoint
returns the that was originally used to set up this. If it was built from a base32-, this is the center point of the bounding box.
Public propertySignificantBits
how many significant bits are there in this ?
Public propertySouthernNeighbour
Nearest GeoHash Neighbor to the South
Public propertyWesternNeighbour
Nearest GeoHash Neighbor to the West
Top
Methods
  NameDescription
Public methodCompareTo
Public methodContains
find out if the given point lies within this hashes bounding box. Note: this operation checks the bounding boxes coordinates, i.e. does not use the s special abilities.s
Public methodEnclosesCircleAroundPoint
?
Public methodEquals
Determines whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object).)
Public methodStatic memberFromBinaryString
Recreates a GeoHash from a string of 0's and 1's
Public methodStatic memberFromGeohashString
build a new from a base32-encoded . This will also set up the hashes bounding box and other values, so it can also be used with functions like within().
Public methodStatic memberFromLongValue
Creates a GeoHash from a long value
Public methodStatic memberFromOrd
Public methodStatic memberGeoHashStringWithCharacterPrecision
This method uses the given number of characters as the desired precision value. The hash can only be 64bits long, thus a maximum precision of 12 characters can be achieved.
Public methodGetHashCode
Serves as the default hash function.
(Overrides ObjectGetHashCode.)
Public methodNext
?
Public methodNext(Int32)
?
Public methodOrd
?
Public methodPrev
?
Public methodStatic memberStepsBetween
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.
Public methodToBase32
get the base32 string for this . this method only makes sense, if this hash has a multiple of 5 significant bits.
Public methodToBinaryString
Get binary String representation of this GeoHash
Public methodToString
Returns a string that represents the current object.
(Overrides ObjectToString.)
Public methodStatic memberwithBitPrecision
create a new with the given number of bits accuracy. This at the same time defines this hash's bounding box.
Public methodStatic memberWithBitPrecision
create a new with the given number of bits accuracy. This at the same time defines this hash's bounding box.
Public methodStatic memberWithCharacterPrecision
This method uses the given number of characters as the desired precision value. The hash can only be 64bits long, thus a maximum precision of 12 characters can be achieved.
Public methodWithin
returns true if this is within the given geohash bounding box.
Top
See Also