GeoDistance
October 23, 2025 ยท View on GitHub
Object to perform geo-distance based filtering on queries
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| location_anchor | GeoDistanceLocationAnchor | [optional] | |
| location_source | str | Field name in the document that contains location data | [optional] |
| distance_type | str | Algorithm used to calculate the distance | [optional] |
| distance | str | The distance from the anchor point to filter results by | [optional] |
Example
from manticoresearch.models.geo_distance import GeoDistance
# TODO update the JSON string below
json = "{}"
# create an instance of GeoDistance from a JSON string
geo_distance_instance = GeoDistance.from_json(json)
# print the JSON string representation of the object
print(GeoDistance.to_json())
# convert the object into a dict
geo_distance_dict = geo_distance_instance.to_dict()
# create an instance of GeoDistance from a dict
geo_distance_from_dict = GeoDistance.from_dict(geo_distance_dict)