GET
Syntax
GET key id [WITHFIELDS] [OBJECT|POINT|BOUNDS|(HASH geohash)]
Description
Get the object of an id. The default output format is a GeoJSON object.
Output formats:
- OBJECT: A GeoJSON object.
- POINT: A standard latitude, longitude point.
- BOUNDS: A minimum bounding rectangle.
- HASH: A Geohash.
A Geohash requires a precision of 1 to 12.
The WITHFIELDS option will also return the fields that belong to the object. Field values that are equal to zero are omitted.
Examples
GET fleet truck1 # get geojson object 'truck1' from 'fleet'
GET fleet truck1 OBJECT # same as above
GET fleet truck1 POINT # get latitude, longitude point
GET fleet truck1 BOUNDS # get bounding rectangle
GET fleet truck1 HASH 5 # get geohash with precision of 5
Related Commands
BOUNDS
DEL
DROP
EXPIRE
FSET
GET
JDEL
JGET
JSET
KEYS
PDEL
PERSIST
RENAME
RENAMENX
SET
STATS
TTL