solidDB Help : Programming : solidDB geohash functions : Geohash SA functions
  
Geohash SA functions
The following solidDB API (SA) geohash functions are available.
For the functions described, the following rules apply:
Latitude and longitude are floating point numbers (or other numeric values).
Precision is an integer between 1 and 23 (1 is least precise, 23 is most precise).
Geohash is a string of arbitrary length. The longer the string, the more precise the location.
Direction is an integer between 0 and 7 that specifies the direction of an adjacent block by using points of the compass that are numbered in a clockwise direction. (0 = North, 7 = Northwest).
Scale is an integer between 1 and 100 that indicates the expected granularity of returned geohash blocks. The higher the scale value, the greater the number of blocks that are returned but with a longer response time. There is no exact mapping between the number of returned blocks and the scale value.
 
SA function
Purpose
SaGeoBlocklist(latitude1,longitude1,
latitude2,longitude2,scale)
Find the set of geohash blocks that fit inside a boundary that is defined by specified lines of latitude and longitude.
Note Depending on the lines of longitude and latitude chosen, the list of blocks can be long. Choose an appropriate scale value to restrict the number of blocks returned.
SaGeoDecodeLatitude(geohash)
SaGeoDecodeLatitudeHigh(geohash)
SaGeoDecodeLatitudeLow(geohash)
SaGeoDecodeLongitude(geohash)
SaGeoDecodeLongitudeLow(geohash)
SaGeoDecodeLongitudeHigh(geohash)
SaGeoDecodePrecision(geohash)
Convert a geohash value to coordinates and precision.
See:
SaGeoEncode(latitude,longitude,
precision)
Convert co-ordinates to geohash values.
SaGeoHashToBoundary(geohash)
Convert a geohash to the lines of latitude and longitude that define the edges of the geohash block.
SaGeoNeighbor(geohash,direction)
Find an adjacent geohash block in a given direction.
SaGeoNeighborhood(geohash)
Find adjacent geohash blocks in all 8 directions.
SaGeoNeighbourhoodToBoundary(geohash)
Find the boundary of the geohash neighborhood (the lines of latitude and longitude that define the edges of the area that contains the geohash and its adjacent neighbors).
Go up to
solidDB geohash functions