I traced the code, and found the following line at https://github.com/neo4j-contrib/spatial/blob/master/src/main/java/org/neo4j/gis/spatial/pipes/processing/OrthodromicDistance.java#L54

```
// TODO check Geometry is a point? use Centroid?
Coordinate point = flow.getGeometry().getCoordinate();
```

It looks like this code will work only with Point geometries. The method `getCoordinate()`

is defined in the JTS library at https://locationtech.github.io/jts/javadoc/org/locationtech/jts/geom/Geometry.html#getCoordinate() and claims the following:

```
Returns a vertex of this Geometry (usually, but not necessarily, the first one)
```

I would recommend you open this as a bug report in the issues of the github project at https://github.com/neo4j-contrib/spatial/issues

If the bug-fix is urgent, you could also submit a PR to fix it, replacing the call to `getCoordinate()`

with something more sensible, like perhaps `getCentroid().getCoordinate()`

. To get the PR accepted, you need to write tests and sign the CLA.