GeoPoint3m.from constructor

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

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

Implementation

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