toPoints static method
Implementation
static List<Coordinate>? toPoints(List<GeometryLocation?>? locations) {
if (locations == null) return null;
List<Coordinate> nearestPts = <Coordinate>[
locations[0]!.getCoordinate(),
locations[1]!.getCoordinate()
];
return nearestPts;
}