ElasticSearch - Geo Spatial search on location array

can you please transform the following query to suit my case, looking forward to your support.

{
  "from" : 0,
  "size" : 20,
  "query" : {
    "match_all" : { }
  },
  "post_filter" : {
    "geo_distance" : {
      "distance" : "25km",
      "locations.location" : { 
        "lat" : 24.7007637, 
        "lon" : 46.6463977 
      }
    }
  }
}