GeoPoint2m.from constructor

GeoPoint2m.from(
  1. Iterable<num> coords, {
  2. int? offset,
})

A geographic position from coords given in order: lon, lat, m.

Implementation

factory GeoPoint2m.from(Iterable<num> coords, {int? offset}) {
  final start = offset ?? 0;
  return GeoPoint2m.lonLatM(
    coords.elementAt(start).toDouble(),
    coords.elementAt(start + 1).toDouble(),
    coords.elementAt(start + 2).toDouble(),
  );
}