Skip to content

GeohashHelper

Namespace: ThinkGeo.Core

public static class GeohashHelper

Inheritance ObjectGeohashHelper

Methods

ConvertToPointShape(String)

public static PointShape ConvertToPointShape(string geohash)

Parameters

geohash String

Returns

PointShape

ConvertToGeohash(PointShape, Int32)

public static string ConvertToGeohash(PointShape pointShapeInDecimalDegree, int precision)

Parameters

pointShapeInDecimalDegree PointShape

precision Int32

Returns

String

ConvertToGeohash(Vertex, Int32)

public static string ConvertToGeohash(Vertex vertexInDecimalDegree, int precision)

Parameters

vertexInDecimalDegree Vertex

precision Int32

Returns

String

ConvertToGeohash(Double, Double, Int32)

public static string ConvertToGeohash(double latitude, double longitude, int precision)

Parameters

latitude Double

longitude Double

precision Int32

Returns

String

GetAdjacentGeohash(Double, Double, GeohashAjacentDirection)

public static string GetAdjacentGeohash(double latitude, double longitude, GeohashAjacentDirection direction)

Parameters

latitude Double

longitude Double

direction GeohashAjacentDirection

Returns

String

GetAdjacentGeohash(Double, Double, GeohashAjacentDirection, Int32)

public static string GetAdjacentGeohash(double latitude, double longitude, GeohashAjacentDirection direction, int precision)

Parameters

latitude Double

longitude Double

direction GeohashAjacentDirection

precision Int32

Returns

String

GetAdjacentGeohash(PointShape, GeohashAjacentDirection)

public static string GetAdjacentGeohash(PointShape pointShapeInDecimalDegree, GeohashAjacentDirection direction)

Parameters

pointShapeInDecimalDegree PointShape

direction GeohashAjacentDirection

Returns

String

GetAdjacentGeohash(PointShape, GeohashAjacentDirection, Int32)

public static string GetAdjacentGeohash(PointShape pointShapeInDecimalDegree, GeohashAjacentDirection direction, int precision)

Parameters

pointShapeInDecimalDegree PointShape

direction GeohashAjacentDirection

precision Int32

Returns

String

GetAdjacentGeohash(Vertex, GeohashAjacentDirection)

public static string GetAdjacentGeohash(Vertex vertexInDecimalDegree, GeohashAjacentDirection direction)

Parameters

vertexInDecimalDegree Vertex

direction GeohashAjacentDirection

Returns

String

GetAdjacentGeohash(Vertex, GeohashAjacentDirection, Int32)

public static string GetAdjacentGeohash(Vertex vertexInDecimalDegree, GeohashAjacentDirection direction, int precision)

Parameters

vertexInDecimalDegree Vertex

direction GeohashAjacentDirection

precision Int32

Returns

String

GetAdjacentGeohash(String, GeohashAjacentDirection)

public static string GetAdjacentGeohash(string geohash, GeohashAjacentDirection direction)

Parameters

geohash String

direction GeohashAjacentDirection

Returns

String

GetAdjacentGeohashes(String)

public static Collection<string> GetAdjacentGeohashes(string geohash)

Parameters

geohash String

Returns

Collection<String>

GetAdjacentGeohashes(PointShape)

public static Collection<string> GetAdjacentGeohashes(PointShape pointShapeInDecimalDegree)

Parameters

pointShapeInDecimalDegree PointShape

Returns

Collection<String>

GetAdjacentGeohashes(PointShape, Int32)

public static Collection<string> GetAdjacentGeohashes(PointShape pointShapeInDecimalDegree, int precision)

Parameters

pointShapeInDecimalDegree PointShape

precision Int32

Returns

Collection<String>

GetAdjacentGeohashes(Vertex)

public static Collection<string> GetAdjacentGeohashes(Vertex vertexInDecimalDegree)

Parameters

vertexInDecimalDegree Vertex

Returns

Collection<String>

GetAdjacentGeohashes(Vertex, Int32)

public static Collection<string> GetAdjacentGeohashes(Vertex vertexInDecimalDegree, int precision)

Parameters

vertexInDecimalDegree Vertex

precision Int32

Returns

Collection<String>

GetAdjacentGeohashes(Double, Double)

public static Collection<string> GetAdjacentGeohashes(double latitude, double longitude)

Parameters

latitude Double

longitude Double

Returns

Collection<String>

GetAdjacentGeohashes(Double, Double, Int32)

public static Collection<string> GetAdjacentGeohashes(double latitude, double longitude, int precision)

Parameters

latitude Double

longitude Double

precision Int32

Returns

Collection<String>