// This file is autogenerated, DO NOT EDIT
// query-dsl/geo-distance-query.asciidoc:213

[source, python]
----
resp = client.search(
    index="my_locations",
    query={
        "bool": {
            "must": {
                "match_all": {}
            },
            "filter": {
                "geo_distance": {
                    "distance": "12km",
                    "pin.location": "POINT (-70 40)"
                }
            }
        }
    },
)
print(resp)
----
