示例#1
0
        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);
        }
示例#2
0
        public static SqlDouble GeohashLatitude(SqlString geohash)
        {
            ISpatialCoordinate coord = Geohash.DecodeGeoHash(geohash.ToString().ToCharArray());

            return(new SqlDouble((double)coord.Latitude));
        }