GeoDistance

October 23, 2025 ยท View on GitHub

Object to perform geo-distance based filtering on queries

Properties

NameTypeDescriptionNotes
location_anchorGeoDistanceLocationAnchor[optional]
location_sourcestrField name in the document that contains location data[optional]
distance_typestrAlgorithm used to calculate the distance[optional]
distancestrThe 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)

[Back to Model list] [Back to API list] [Back to README]