MCPcopy
hub / github.com/redis/redis-py / GeoShapeField

Class GeoShapeField

redis/commands/search/field.py:121–133  ·  view source on GitHub ↗

GeoShapeField is used to enable within/contain indexing/searching

Source from the content-addressed store, hash-verified

119
120
121class GeoShapeField(Field):
122 """
123 GeoShapeField is used to enable within/contain indexing/searching
124 """
125
126 SPHERICAL = "SPHERICAL"
127 FLAT = "FLAT"
128
129 def __init__(self, name: str, coord_system=None, **kwargs):
130 args = [Field.GEOSHAPE]
131 if coord_system:
132 args.append(coord_system)
133 Field.__init__(self, name, args=args, **kwargs)
134
135
136class GeoField(Field):

Calls

no outgoing calls