writeLat method

  1. @override
void writeLat(
  1. StringSink buf,
  2. double deg
)
override

Writes a degree value deg as a String representation (deg/min/sec) of the latitude to buf.

Throws FormatException if a string representation cannot be formatted.

See also lat for documentation.

Implementation

@override
void writeLat(StringSink buf, double deg) {
  final normalized = deg.wrapLatitude();
  write(buf, normalized, twoDigitDeg: true);
  if (!_signedDegrees) {
    buf
      ..write(_separator)
      ..write(normalized < 0.0 ? 'S' : 'N');
  }
}