{
  "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do not edit it. See ../README.md for how to regenerate it.",
  "type" : "scalar",
  "name" : "st_distance",
  "description" : "Computes the distance between two points.\nFor cartesian geometries, this is the pythagorean distance in the same units as the original coordinates.\nFor geographic geometries, this is the circular distance along the great circle in meters.",
  "signatures" : [
    {
      "params" : [
        {
          "name" : "geomA",
          "type" : "cartesian_point",
          "optional" : false,
          "description" : "Expression of type `geo_point` or `cartesian_point`. If `null`, the function returns `null`."
        },
        {
          "name" : "geomB",
          "type" : "cartesian_point",
          "optional" : false,
          "description" : "Expression of type `geo_point` or `cartesian_point`. If `null`, the function returns `null`. The second parameter must also have the same coordinate system as the first. This means it is not possible to combine `geo_point` and `cartesian_point` parameters."
        }
      ],
      "variadic" : false,
      "returnType" : "double"
    },
    {
      "params" : [
        {
          "name" : "geomA",
          "type" : "geo_point",
          "optional" : false,
          "description" : "Expression of type `geo_point` or `cartesian_point`. If `null`, the function returns `null`."
        },
        {
          "name" : "geomB",
          "type" : "geo_point",
          "optional" : false,
          "description" : "Expression of type `geo_point` or `cartesian_point`. If `null`, the function returns `null`. The second parameter must also have the same coordinate system as the first. This means it is not possible to combine `geo_point` and `cartesian_point` parameters."
        }
      ],
      "variadic" : false,
      "returnType" : "double"
    }
  ],
  "examples" : [
    "FROM airports\n| WHERE abbrev == \"CPH\"\n| EVAL distance = ST_DISTANCE(location, city_location)\n| KEEP abbrev, name, location, city_location, distance"
  ],
  "preview" : false,
  "snapshot_only" : false
}
