public static SqlDouble[] DecodeGeohash(SqlString geohash) { ISpatialCoordinate coord = Geohash.DecodeGeoHash(geohash.ToString().ToCharArray()); SqlDouble[] coordinate = { new SqlDouble((double)coord.Latitude), new SqlDouble((double)coord.Longitude) }; return(coordinate); }
public static SqlDouble GeohashLatitude(SqlString geohash) { ISpatialCoordinate coord = Geohash.DecodeGeoHash(geohash.ToString().ToCharArray()); return(new SqlDouble((double)coord.Latitude)); }