GeohashHelper¶
Namespace: ThinkGeo.Core
public static class GeohashHelper
Inheritance Object → GeohashHelper
Methods¶
ConvertToPointShape(String)¶
public static PointShape ConvertToPointShape(string geohash)
Parameters¶
geohash
String
Returns¶
ConvertToGeohash(PointShape, Int32)¶
public static string ConvertToGeohash(PointShape pointShapeInDecimalDegree, int precision)
Parameters¶
pointShapeInDecimalDegree
PointShape
precision
Int32
Returns¶
ConvertToGeohash(Vertex, Int32)¶
public static string ConvertToGeohash(Vertex vertexInDecimalDegree, int precision)
Parameters¶
vertexInDecimalDegree
Vertex
precision
Int32
Returns¶
ConvertToGeohash(Double, Double, Int32)¶
public static string ConvertToGeohash(double latitude, double longitude, int precision)
Parameters¶
latitude
Double
longitude
Double
precision
Int32
Returns¶
GetAdjacentGeohash(Double, Double, GeohashAjacentDirection)¶
public static string GetAdjacentGeohash(double latitude, double longitude, GeohashAjacentDirection direction)
Parameters¶
latitude
Double
longitude
Double
direction
GeohashAjacentDirection
Returns¶
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¶
GetAdjacentGeohash(PointShape, GeohashAjacentDirection)¶
public static string GetAdjacentGeohash(PointShape pointShapeInDecimalDegree, GeohashAjacentDirection direction)
Parameters¶
pointShapeInDecimalDegree
PointShape
direction
GeohashAjacentDirection
Returns¶
GetAdjacentGeohash(PointShape, GeohashAjacentDirection, Int32)¶
public static string GetAdjacentGeohash(PointShape pointShapeInDecimalDegree, GeohashAjacentDirection direction, int precision)
Parameters¶
pointShapeInDecimalDegree
PointShape
direction
GeohashAjacentDirection
precision
Int32
Returns¶
GetAdjacentGeohash(Vertex, GeohashAjacentDirection)¶
public static string GetAdjacentGeohash(Vertex vertexInDecimalDegree, GeohashAjacentDirection direction)
Parameters¶
vertexInDecimalDegree
Vertex
direction
GeohashAjacentDirection
Returns¶
GetAdjacentGeohash(Vertex, GeohashAjacentDirection, Int32)¶
public static string GetAdjacentGeohash(Vertex vertexInDecimalDegree, GeohashAjacentDirection direction, int precision)
Parameters¶
vertexInDecimalDegree
Vertex
direction
GeohashAjacentDirection
precision
Int32
Returns¶
GetAdjacentGeohash(String, GeohashAjacentDirection)¶
public static string GetAdjacentGeohash(string geohash, GeohashAjacentDirection direction)
Parameters¶
geohash
String
direction
GeohashAjacentDirection
Returns¶
GetAdjacentGeohashes(String)¶
public static Collection<string> GetAdjacentGeohashes(string geohash)
Parameters¶
geohash
String
Returns¶
GetAdjacentGeohashes(PointShape)¶
public static Collection<string> GetAdjacentGeohashes(PointShape pointShapeInDecimalDegree)
Parameters¶
pointShapeInDecimalDegree
PointShape
Returns¶
GetAdjacentGeohashes(PointShape, Int32)¶
public static Collection<string> GetAdjacentGeohashes(PointShape pointShapeInDecimalDegree, int precision)
Parameters¶
pointShapeInDecimalDegree
PointShape
precision
Int32
Returns¶
GetAdjacentGeohashes(Vertex)¶
public static Collection<string> GetAdjacentGeohashes(Vertex vertexInDecimalDegree)
Parameters¶
vertexInDecimalDegree
Vertex
Returns¶
GetAdjacentGeohashes(Vertex, Int32)¶
public static Collection<string> GetAdjacentGeohashes(Vertex vertexInDecimalDegree, int precision)
Parameters¶
vertexInDecimalDegree
Vertex
precision
Int32
Returns¶
GetAdjacentGeohashes(Double, Double)¶
public static Collection<string> GetAdjacentGeohashes(double latitude, double longitude)
Parameters¶
latitude
Double
longitude
Double
Returns¶
GetAdjacentGeohashes(Double, Double, Int32)¶
public static Collection<string> GetAdjacentGeohashes(double latitude, double longitude, int precision)
Parameters¶
latitude
Double
longitude
Double
precision
Int32