toPoints static method

List<Coordinate>? toPoints(
  1. List<GeometryLocation?>? locations
)

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;
}